public class ElementInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ElementInfo.EnumElementValidity
Enumeration of element validity values
|
Modifier and Type | Field and Description |
---|---|
static HashMap<String,ElementInfo> |
fixedMap |
Constructor and Description |
---|
ElementInfo(ElementInfo elemInfo_super,
ElemInfoTable[] elemInfo_own)
Constructor
|
Modifier and Type | Method and Description |
---|---|
VString |
deprecatedElements()
Returns the list of deprecated elements for the specified JDF version.
|
JDFElement.EnumVersion |
getFirstVersion(String elementName)
get the first jdf version where an attrinute of this type is valid
|
JDFElement.EnumVersion |
getLastVersion(String elementName)
get the last jdf version where an attrinute of this type is valid
|
boolean |
hasConformingElements(ElementInfo.EnumElementValidity elemValidity1,
ElementInfo.EnumElementValidity elemValidity2,
ElementInfo.EnumElementValidity elemValidity3,
ElementInfo.EnumElementValidity elemValidity4)
Returns true if there is at least one sub-element matching the requested validity for the specified JDF version.
|
VString |
optionalElements()
Returns the list of optional sub-elements for the specified JDF version.
|
VString |
prereleaseElements()
Returns the list of prerelease attributes (those that are only valid in a later version) for the specified JDF
version.
|
VString |
requiredElements()
Returns the list of required sub-elements for the specified JDF version.
|
void |
setVersion(JDFElement.EnumVersion v) |
String |
toString() |
VString |
uniqueElements()
Returns the list of unique elements for the specified JDF version.
|
ElementInfo |
updateAdd(ElemInfoTable elemInfo_update)
Updater
|
ElementInfo |
updateAdd(ElemInfoTable[] elemInfo_update)
Updater
|
ElementInfo |
updateRemove(ElemInfoTable elemInfo_update)
Updater
|
ElementInfo |
updateRemove(ElemInfoTable[] elemInfo_update)
Updater
|
ElementInfo |
updateReplace(ElemInfoTable elemInfo_update) |
ElementInfo |
updateReplace(ElemInfoTable[] elemInfo_update) |
public static final HashMap<String,ElementInfo> fixedMap
public ElementInfo(ElementInfo elemInfo_super, ElemInfoTable[] elemInfo_own)
elemInfo_super
- elemInfo_super: corresponding element info of super; if null: start from scratch, otherwise
initialize from other ElementInfoelemInfo_own
- [] elemInfo_own: table with element-specific element infopublic ElementInfo updateAdd(ElemInfoTable elemInfo_update)
elemInfo_update
- [] elemInfo_update: table with element-specific attribute infopublic ElementInfo updateAdd(ElemInfoTable[] elemInfo_update)
elemInfo_update
- [] elemInfo_update: table with element-specific attribute infopublic ElementInfo updateRemove(ElemInfoTable elemInfo_update)
elemInfo_update
- : table with element-specific attribute infopublic ElementInfo updateRemove(ElemInfoTable[] elemInfo_update)
elemInfo_update
- table with element-specific attribute info to remove from attribInfoTablepublic ElementInfo updateReplace(ElemInfoTable elemInfo_update)
elemInfo_update
- public ElementInfo updateReplace(ElemInfoTable[] elemInfo_update)
elemInfo_update
- public boolean hasConformingElements(ElementInfo.EnumElementValidity elemValidity1, ElementInfo.EnumElementValidity elemValidity2, ElementInfo.EnumElementValidity elemValidity3, ElementInfo.EnumElementValidity elemValidity4)
elemValidity1
- elemValidity: requested validityelemValidity2
- elemValidity3
- elemValidity4
- public VString requiredElements()
public VString optionalElements()
public VString deprecatedElements()
public VString uniqueElements()
public VString prereleaseElements()
public void setVersion(JDFElement.EnumVersion v)
v
- public String toString()
toString
in class Object
Object.toString()
public JDFElement.EnumVersion getFirstVersion(String elementName)
elementName
- the name of the queried attributepublic JDFElement.EnumVersion getLastVersion(String elementName)
elementName
- the name of the queried attributeCopyright © 2018. All rights reserved.