|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.lang.Enum net.dpml.library.Feature
Enumeration identifying resource features.
Field Summary | |
static Feature |
BASEDIR
Project basedir. |
static Feature |
DECIMAL
Resource decimal version. |
static Feature |
FILENAME
Resource filename. |
static Feature |
GROUP
Resource group. |
static Feature |
NAME
Resource name. |
static Feature |
PATH
Resource path. |
static Feature |
SPEC
Resource spec. |
static Feature |
URI
Resource version. |
static Feature |
VERSION
Resource version. |
Method Summary | |
static Feature |
parse(String value)
Return a feature. |
static String |
resolve(Resource resource,
Feature feature)
Return the value of a feature. |
static String |
resolve(Resource resource,
Feature feature,
Type type)
Return the value of a feature. |
static String |
resolve(Resource resource,
Feature feature,
Type type,
boolean alias)
Return the value of a feature. |
String |
toString()
Return a string representation of the scope. |
static Feature[] |
values()
Returns an array of activation enum values. |
Methods inherited from class net.dpml.lang.Enum |
equals, getName, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Feature NAME
public static final Feature GROUP
public static final Feature VERSION
public static final Feature DECIMAL
public static final Feature URI
public static final Feature SPEC
public static final Feature PATH
public static final Feature FILENAME
public static final Feature BASEDIR
Method Detail |
public static Feature[] values()
public String toString()
toString
in class Enum
public static Feature parse(String value) throws IllegalArgumentException
value
- the feature name
IllegalArgumentException
- if the name if not a recognized feature.public static String resolve(Resource resource, Feature feature)
resource
- the target resourcefeature
- the feature
public static String resolve(Resource resource, Feature feature, Type type)
resource
- the target resourcefeature
- the featuretype
- the selected type
public static String resolve(Resource resource, Feature feature, Type type, boolean alias)
resource
- the target resourcefeature
- the featuretype
- the selected typealias
- flag indicated that alias based uri resolution is requested
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |