1 23 24 package org.apache.slide.webdav.util.resourcekind; 25 26 import java.util.Set ; 27 28 29 public class BaselineImpl extends AbstractResourceKind implements Baseline { 30 31 protected static ResourceKind singleton = null; 32 33 36 static public ResourceKind getInstance() { 37 if( singleton == null ) 38 singleton = new BaselineImpl(); 39 return singleton; 40 } 41 42 45 protected BaselineImpl() { 46 } 47 48 57 public Set getSupportedLiveProperties( String [] excludedFeatures ) { 58 Set s = super.getSupportedLiveProperties( excludedFeatures ); 59 if( isSupportedFeature(F_BASELINE, excludedFeatures) ) { 60 s.add( P_BASELINE_COLLECTION ); 61 s.add( P_SUBBASELINE_SET ); 62 } 63 return s; 64 } 65 66 69 public Set getSupportedMethods() { 70 Set s = super.getSupportedMethods(); 71 return s; 72 } 73 74 77 public Set getSupportedReports() { 78 Set s = super.getSupportedReports(); 79 return s; 80 } 81 82 85 public String toString() { 86 return "baseline"; 87 } 88 } 89 90 | Popular Tags |