|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.core.AttributeInfo
public class AttributeInfo
The maintainer of version-specific attribute information: - attribute type (for current version only) - validity per version
| Nested Class Summary | |
|---|---|
static class |
AttributeInfo.EnumAttributeType
Enumeration of valid attribute types |
static class |
AttributeInfo.EnumAttributeValidity
Enumeration of attribute validity values |
| Field Summary | |
|---|---|
static HashMap<String,AttributeInfo> |
fixedMap
|
| Constructor Summary | |
|---|---|
protected |
AttributeInfo(AtrInfoTable[] attrInfo_own)
Constructor |
|
AttributeInfo(AttributeInfo attrInfo_super,
AtrInfoTable[] attrInfo_own)
Deprecated. |
| Method Summary | |
|---|---|
VString |
conformingAttribs(AttributeInfo.EnumAttributeValidity attrValidity)
Returns a list of attributes matching the requested validity for the specified JDF version. |
VString |
deprecatedAttribs()
Returns the list of deprecated attributes for the specified JDF version. |
AttributeInfo.EnumAttributeType |
getAtrType(String attributeName)
Deprecated. 2005-08-26 |
String |
getAttributeDefault(String attributeName)
Returns the Default that goes with attributeName |
org.apache.commons.lang.enums.ValuedEnum |
getAttributeEnum(String attributeName)
Returns the ValuedEnum that goes with attributeName |
AttributeInfo.EnumAttributeType |
getAttributeType(String attributeName)
Returns the type of the given attribute for the latest JDF version. |
AttributeInfo.EnumAttributeValidity |
getAttributeValidity(String attributeName)
Returns the validity of the given attribute for the latest JDF version. |
JDFAttributeMap |
getDefaultAttributeMap()
Returns a map of attributes with defaults for the specified JDF version. |
JDFElement.EnumVersion |
getFirstVersion(String attributeName)
get the first jdf version where an attrinute of this type is valid |
JDFElement.EnumVersion |
getLastVersion(String attributeName)
get the last jdf version where an attrinute of this type is valid |
boolean |
hasConformingAttrib(AttributeInfo.EnumAttributeValidity attrValidity)
Returns true if there is at least one attribute matching the requested validity for the specified JDF version. |
VString |
knownAttribs()
Returns the list of all attributes for the specified JDF version. |
VString |
optionalAttribs()
Returns the list of optional attributes for the specified JDF version. |
VString |
prereleaseAttribs()
Returns the list of prerelease attributes (those that are only valid in a later version) for the specified JDF version. |
VString |
requiredAttribs()
Returns the list of required attributes for the specified JDF version. |
void |
setVersion(JDFElement.EnumVersion v)
|
String |
toString()
|
AttributeInfo |
updateAdd(AtrInfoTable attrInfo_update)
Updater |
AttributeInfo |
updateAdd(AtrInfoTable[] attrInfo_update)
Updater |
AttributeInfo |
updateRemove(AtrInfoTable attrInfo_update)
Updater |
AttributeInfo |
updateRemove(AtrInfoTable[] attrInfo_update)
Updater |
AttributeInfo |
updateReplace(AtrInfoTable attrInfo_update)
|
AttributeInfo |
updateReplace(AtrInfoTable[] attrInfo_update)
|
boolean |
validAttribute(String key,
String attribute,
JDFElement.EnumValidationLevel level)
|
static boolean |
validStringForType(String val,
AttributeInfo.EnumAttributeType iType,
org.apache.commons.lang.enums.ValuedEnum enu)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static HashMap<String,AttributeInfo> fixedMap
| Constructor Detail |
|---|
protected AttributeInfo(AtrInfoTable[] attrInfo_own)
attrInfo_own - : table with element-specific attribute info
@Deprecated
public AttributeInfo(AttributeInfo attrInfo_super,
AtrInfoTable[] attrInfo_own)
attrInfo_super - corresponding attrib info of super; if null: start from scratch, otherwise
initialize from other AttributeInfoattrInfo_own - table with element-specific attribute info| Method Detail |
|---|
public AttributeInfo updateAdd(AtrInfoTable attrInfo_update)
attrInfo_update - table with element-specific attribute info
public AttributeInfo updateAdd(AtrInfoTable[] attrInfo_update)
attrInfo_update - table with element-specific attribute info
public AttributeInfo updateRemove(AtrInfoTable attrInfo_update)
attrInfo_update - table with element-specific attribute info
public AttributeInfo updateRemove(AtrInfoTable[] attrInfo_update)
attrInfo_update - table with element-specific attribute info to remove from attribInfoTable
public AttributeInfo updateReplace(AtrInfoTable attrInfo_update)
attrInfo_update -
public AttributeInfo updateReplace(AtrInfoTable[] attrInfo_update)
attrInfo_update -
public VString conformingAttribs(AttributeInfo.EnumAttributeValidity attrValidity)
attrValidity - requested validity
public JDFAttributeMap getDefaultAttributeMap()
public boolean hasConformingAttrib(AttributeInfo.EnumAttributeValidity attrValidity)
attrValidity - requested validity
public VString requiredAttribs()
public VString optionalAttribs()
public VString knownAttribs()
public VString deprecatedAttribs()
public VString prereleaseAttribs()
public AttributeInfo.EnumAttributeType getAttributeType(String attributeName)
attributeName - name of the attribute
public AttributeInfo.EnumAttributeValidity getAttributeValidity(String attributeName)
attributeName - name of the attribute
public org.apache.commons.lang.enums.ValuedEnum getAttributeEnum(String attributeName)
attributeName - : name of the attribute
public String getAttributeDefault(String attributeName)
attributeName - : name of the attribute
public void setVersion(JDFElement.EnumVersion v)
v - @Deprecated public AttributeInfo.EnumAttributeType getAtrType(String attributeName)
attributeName - the localname of the attribute to check
public boolean validAttribute(String key,
String attribute,
JDFElement.EnumValidationLevel level)
key - attribute - level -
public static boolean validStringForType(String val,
AttributeInfo.EnumAttributeType iType,
org.apache.commons.lang.enums.ValuedEnum enu)
val - iType - enu -
public String toString()
toString in class ObjectObject.toString()public JDFElement.EnumVersion getFirstVersion(String attributeName)
attributeName - the name of the queried attribute
public JDFElement.EnumVersion getLastVersion(String attributeName)
attributeName - the name of the queried attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||