org.cip4.jdflib.core
Class AtrInfo
java.lang.Object
org.cip4.jdflib.core.AtrInfo
public class AtrInfo
- extends Object
- Author:
- Dr. Rainer Prosi, Heidelberger Druckmaschinen AG
Aug 10, 2009
AtrInfo
public AtrInfo(long s,
AttributeInfo.EnumAttributeType t,
org.apache.commons.lang.enums.ValuedEnum e,
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 -
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
getAtrType
public AttributeInfo.EnumAttributeType getAtrType()
- Returns:
- Returns the atrType.
getAtrValidityStatus
public long getAtrValidityStatus()
- Returns:
- Returns the atrValidityStatus.
getEnumEnum
public org.apache.commons.lang.enums.ValuedEnum getEnumEnum()
- Returns:
- the enum used for type declaration
getAtrDefault
public String getAtrDefault()
- Returns:
- the default value, null if none set
toString
public String toString()
- Overrides:
toString in class Object
- 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 attribute of this type is valid
- Returns:
- the last valid version
Copyright © 2013. All Rights Reserved.