public class AttributeInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeInfo.EnumAttributeType
Enumeration of valid attribute types
|
static class |
AttributeInfo.EnumAttributeValidity
Enumeration of attribute validity values
|
| Modifier and Type | Field and Description |
|---|---|
static HashMap<String,AttributeInfo> |
fixedMap |
| Modifier | Constructor and Description |
|---|---|
protected |
AttributeInfo(AtrInfoTable[] attrInfo_own)
Constructor
|
|
AttributeInfo(AttributeInfo attrInfo_super,
AtrInfoTable[] attrInfo_own)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
public static HashMap<String,AttributeInfo> fixedMap
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 infopublic AttributeInfo updateAdd(AtrInfoTable attrInfo_update)
attrInfo_update - table with element-specific attribute infopublic AttributeInfo updateAdd(AtrInfoTable[] attrInfo_update)
attrInfo_update - table with element-specific attribute infopublic AttributeInfo updateRemove(AtrInfoTable attrInfo_update)
attrInfo_update - table with element-specific attribute infopublic AttributeInfo updateRemove(AtrInfoTable[] attrInfo_update)
attrInfo_update - table with element-specific attribute info to remove from attribInfoTablepublic AttributeInfo updateReplace(AtrInfoTable attrInfo_update)
attrInfo_update - public AttributeInfo updateReplace(AtrInfoTable[] attrInfo_update)
attrInfo_update - public VString conformingAttribs(AttributeInfo.EnumAttributeValidity attrValidity)
attrValidity - requested validitypublic JDFAttributeMap getDefaultAttributeMap()
public boolean hasConformingAttrib(AttributeInfo.EnumAttributeValidity attrValidity)
attrValidity - requested validitypublic VString requiredAttribs()
public VString optionalAttribs()
public VString knownAttribs()
public VString deprecatedAttribs()
public VString prereleaseAttribs()
public AttributeInfo.EnumAttributeType getAttributeType(String attributeName)
attributeName - name of the attributepublic AttributeInfo.EnumAttributeValidity getAttributeValidity(String attributeName)
attributeName - name of the attributepublic org.apache.commons.lang.enums.ValuedEnum getAttributeEnum(String attributeName)
attributeName - : name of the attributepublic String getAttributeDefault(String attributeName)
attributeName - : name of the attributepublic void setVersion(JDFElement.EnumVersion v)
v - @Deprecated public AttributeInfo.EnumAttributeType getAtrType(String attributeName)
attributeName - the localname of the attribute to checkpublic 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 attributepublic JDFElement.EnumVersion getLastVersion(String attributeName)
attributeName - the name of the queried attributeCopyright © 2015. All rights reserved.