Package org.cip4.jdflib.core
Class AtrInfo
java.lang.Object
org.cip4.jdflib.core.AtrInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAtrInfo(long s, AttributeInfo.EnumAttributeType t, ValuedEnum e) AtrInfo(long s, AttributeInfo.EnumAttributeType t, ValuedEnum e, String _atrDefault) -
Method Summary
Modifier and TypeMethodDescriptionget the first jdf version where an attribute of this type is validget the last jdf version where an element of this type is validlongstatic booleanmatchesAttribute(String smallAtt, String bigAtt, AttributeInfo.EnumAttributeType dataType) checks whether smallAtt is a matching subset of bigAtt depending on datatypestatic booleanmatchesTokenList(String smallAtt, String bigAtt) toString()
-
Field Details
-
MAXLOOP
protected static final int MAXLOOP- See Also:
-
validity
protected final long validity
-
-
Constructor Details
-
AtrInfo
- Parameters:
s-t-e-_atrDefault-
-
AtrInfo
- Parameters:
s-t-e-
-
-
Method Details
-
matchesAttribute
public static boolean matchesAttribute(String smallAtt, String bigAtt, AttributeInfo.EnumAttributeType dataType) checks whether smallAtt is a matching subset of bigAtt depending on datatype- Parameters:
smallAtt- the small att to testbigAtt- the big att, e.g. list to test againstdataType- the datatype of the big att- Returns:
- true if smallAtt is a matching subset of bigAtt
-
matchesTokenList
-
getAtrType
- Returns:
- Returns the atrType.
-
getValidityStatus
public long getValidityStatus()- Returns:
- Returns the atrValidityStatus.
-
getEnumEnum
- Returns:
- the enum used for type declaration
-
getAtrDefault
- Returns:
- the default value, null if none set
-
toString
- See Also:
-
getFirstVersion
get the first jdf version where an attribute of this type is valid- Returns:
- the first valid version
-
getLastVersion
get the last jdf version where an element of this type is valid- Returns:
-