Package org.cip4.jdflib.core
Class ElementInfo
java.lang.Object
org.cip4.jdflib.core.ElementInfo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEnumeration of element validity values -
Constructor Summary
ConstructorsConstructorDescriptionElementInfo(ElementInfo elemInfo_super, ElemInfoTable[] elemInfo_own) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of deprecated elements for the specified JDF version.getFirstVersion(String elementName) get the first jdf version where an attrinute of this type is validstatic Map<String,ElementInfo> getLastVersion(String elementName) get the last jdf version where an attrinute of this type is validbooleanhasConformingElements(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.Returns the list of optional sub-elements for the specified JDF version.Returns the list of prerelease attributes (those that are only valid in a later version) for the specified JDF version.Returns the list of required sub-elements for the specified JDF version.voidtoString()Returns the list of unique elements for the specified JDF version.updateAdd(ElemInfoTable elemInfo_update) UpdaterupdateAdd(ElemInfoTable[] elemInfo_update) UpdaterupdateRemove(ElemInfoTable elemInfo_update) UpdaterupdateRemove(ElemInfoTable[] elemInfo_update) UpdaterupdateReplace(ElemInfoTable elemInfo_update) updateReplace(ElemInfoTable[] elemInfo_update)
-
Constructor Details
-
ElementInfo
Constructor- Parameters:
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 info
-
-
Method Details
-
getFixedmap
- Returns:
- the fixedmap
-
updateAdd
Updater- Parameters:
elemInfo_update- [] elemInfo_update: table with element-specific attribute info- Returns:
-
updateAdd
Updater- Parameters:
elemInfo_update- [] elemInfo_update: table with element-specific attribute info- Returns:
-
updateRemove
Updater- Parameters:
elemInfo_update- : table with element-specific attribute info- Returns:
-
updateRemove
Updater- Parameters:
elemInfo_update- table with element-specific attribute info to remove from attribInfoTable- Returns:
-
updateReplace
- Parameters:
elemInfo_update-- Returns:
-
updateReplace
- Parameters:
elemInfo_update-- Returns:
-
hasConformingElements
public 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.- Parameters:
elemValidity1- elemValidity: requested validityelemValidity2-elemValidity3-elemValidity4-- Returns:
- boolean: true if at least one sub-element matches the requested validity
-
requiredElements
Returns the list of required sub-elements for the specified JDF version.- Returns:
- VString: list of strings containing the names of the required sub-elements
-
optionalElements
Returns the list of optional sub-elements for the specified JDF version. Note: This includes elements marked as optional as well as elements marked as deprecated (since, for backward compatibility, these are also optional).- Returns:
- VString: list of strings containing the names of the optional attributes
-
deprecatedElements
Returns the list of deprecated elements for the specified JDF version.- Returns:
- VString: list of strings containing the names of the deprecated attributes
-
uniqueElements
Returns the list of unique elements for the specified JDF version.- Returns:
- VString: list of strings containing the names of the deprecated attributes
-
prereleaseElements
Returns the list of prerelease attributes (those that are only valid in a later version) for the specified JDF version.- Returns:
- VString: list of strings containing the names of the prerelease attributes
-
setVersion
- Parameters:
v-
-
toString
-
getFirstVersion
get the first jdf version where an attrinute of this type is valid- Parameters:
elementName- the name of the queried attribute- Returns:
-
getLastVersion
get the last jdf version where an attrinute of this type is valid- Parameters:
elementName- the name of the queried attribute- Returns:
-