Package org.cip4.jdflib.core
Class AtrInfo
- java.lang.Object
-
- org.cip4.jdflib.core.AtrInfo
-
public class AtrInfo extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AtrInfo(long s, AttributeInfo.EnumAttributeType t, org.apache.commons.lang.enums.ValuedEnum e)AtrInfo(long s, AttributeInfo.EnumAttributeType t, org.apache.commons.lang.enums.ValuedEnum e, java.lang.String _atrDefault)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAtrDefault()AttributeInfo.EnumAttributeTypegetAtrType()org.apache.commons.lang.enums.ValuedEnumgetEnumEnum()JDFElement.EnumVersiongetFirstVersion()get the first jdf version where an attribute of this type is validJDFElement.EnumVersiongetLastVersion()get the last jdf version where an element of this type is validlonggetValidityStatus()static booleanmatchesAttribute(java.lang.String smallAtt, java.lang.String bigAtt, AttributeInfo.EnumAttributeType dataType)checks whether smallAtt is a matching subset of bigAtt depending on datatypestatic booleanmatchesTokenList(java.lang.String smallAtt, java.lang.String bigAtt)java.lang.StringtoString()
-
-
-
Field Detail
-
MAXLOOP
protected static final int MAXLOOP
- See Also:
- Constant Field Values
-
validity
protected final long validity
-
-
Constructor Detail
-
AtrInfo
public AtrInfo(long s, AttributeInfo.EnumAttributeType t, org.apache.commons.lang.enums.ValuedEnum e, java.lang.String _atrDefault)- Parameters:
s-t-e-_atrDefault-
-
AtrInfo
public AtrInfo(long s, AttributeInfo.EnumAttributeType t, org.apache.commons.lang.enums.ValuedEnum e)- Parameters:
s-t-e-
-
-
Method Detail
-
matchesAttribute
public static boolean matchesAttribute(java.lang.String smallAtt, java.lang.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
public static boolean matchesTokenList(java.lang.String smallAtt, java.lang.String bigAtt)
-
getAtrType
public AttributeInfo.EnumAttributeType getAtrType()
- Returns:
- Returns the atrType.
-
getValidityStatus
public long getValidityStatus()
- Returns:
- Returns the atrValidityStatus.
-
getEnumEnum
public org.apache.commons.lang.enums.ValuedEnum getEnumEnum()
- Returns:
- the enum used for type declaration
-
getAtrDefault
public java.lang.String getAtrDefault()
- Returns:
- the default value, null if none set
-
toString
public java.lang.String toString()
- See Also:
Object.toString()
-
getFirstVersion
public JDFElement.EnumVersion getFirstVersion()
get the first jdf version where an attribute of this type is valid- Returns:
- the first valid version
-
getLastVersion
public JDFElement.EnumVersion getLastVersion()
get the last jdf version where an element of this type is valid- Returns:
-
-