|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.library.info.AbstractDirective net.dpml.library.info.ResourceDirective
The ResourceDirective class describes an available resource.
Nested Class Summary | |
static class |
ResourceDirective.Classifier
Resource classifier enumeration. |
Field Summary | |
static ResourceDirective.Classifier |
ANONYMOUS
Anonymous resource constant identifier. |
static ResourceDirective.Classifier |
EXTERNAL
External resource constant identifier. |
static ResourceDirective.Classifier |
LOCAL
Local resource constant identifier. |
Method Summary | |
static ResourceDirective |
createAnonymousResource(String scheme,
String name,
String version,
String type,
Properties properties)
Creation of a new anonymous resource directive. |
static ResourceDirective |
createResourceDirective(String name,
String version,
ResourceDirective.Classifier classifier,
String basedir,
InfoDirective info,
DataDirective[] data,
DependencyDirective[] dependencies,
Properties properties,
FilterDirective[] filters)
Creation of a new resource directive. |
boolean |
equals(Object other)
Compare this object with another for equality. |
String |
getBasedir()
Return the resource basedir. |
ResourceDirective.Classifier |
getClassifier()
Return the resource classifier. |
DataDirective[] |
getDataDirectives()
Return an array of supporting production data directives (including all produced types). |
DependencyDirective |
getDependencyDirective(Scope scope)
Return an dependency directive matching a supplied scope. |
DependencyDirective[] |
getDependencyDirectives()
Return an array of dependency directives. |
FilterDirective[] |
getFilterDirectives()
Return an array of supplimentary filter directives. |
InfoDirective |
getInfoDirective()
Return the info descriptor. |
String |
getName()
Return the resource name. |
String |
getScheme()
Return the scheme to use when declaring the published artifact (used in conjunction with anonymous resources. |
TypeDirective |
getTypeDirective(String name)
Return an named type. |
TypeDirective[] |
getTypeDirectives()
Return an array of types representing artifacts associated with the resource. |
String |
getVersion()
Return the resource version. |
int |
hashCode()
Compute the hash value. |
boolean |
isAnonymous()
Return true if this represents a anonymous resource. |
boolean |
isLocal()
Return true if this represents a local project. |
Methods inherited from class net.dpml.library.info.AbstractDirective |
equals, getProperties, getProperty, hashArray, hashValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final ResourceDirective.Classifier EXTERNAL
public static final ResourceDirective.Classifier LOCAL
public static final ResourceDirective.Classifier ANONYMOUS
Method Detail |
public static ResourceDirective createAnonymousResource(String scheme, String name, String version, String type, Properties properties)
scheme
- the schema namename
- the resource nameversion
- the resource versiontype
- the resource typeproperties
- suppliementary properties
public static ResourceDirective createResourceDirective(String name, String version, ResourceDirective.Classifier classifier, String basedir, InfoDirective info, DataDirective[] data, DependencyDirective[] dependencies, Properties properties, FilterDirective[] filters)
name
- the resource nameversion
- the resource versionclassifier
- LOCAL or EXTERNAL classifierbasedir
- the project basedirinfo
- info descriptordata
- types produced by the resourcedependencies
- resource dependenciesproperties
- suppliementary propertiesfilters
- project filters
public String getName()
public String getVersion()
public String getBasedir()
public InfoDirective getInfoDirective()
public ResourceDirective.Classifier getClassifier()
public boolean isLocal()
public boolean isAnonymous()
public String getScheme()
public TypeDirective[] getTypeDirectives()
public FilterDirective[] getFilterDirectives()
public DataDirective[] getDataDirectives()
public TypeDirective getTypeDirective(String name) throws TypeUnknownException
name
- the type name
TypeUnknownException
- if the type name if not recornized within
the scope of the resourcepublic DependencyDirective[] getDependencyDirectives()
public DependencyDirective getDependencyDirective(Scope scope)
scope
- the scope
public boolean equals(Object other)
equals
in class AbstractDirective
other
- the other object
public int hashCode()
hashCode
in class AbstractDirective
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |