org.cip4.jdflib.core
Class AtrInfo

java.lang.Object
  extended by org.cip4.jdflib.core.AtrInfo

public class AtrInfo
extends Object

Author:
Dr. Rainer Prosi, Heidelberger Druckmaschinen AG Aug 10, 2009

Constructor Summary
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, String _atrDefault)
           
 
Method Summary
 String getAtrDefault()
           
 AttributeInfo.EnumAttributeType getAtrType()
           
 long getAtrValidityStatus()
           
 org.apache.commons.lang.enums.ValuedEnum getEnumEnum()
           
 JDFElement.EnumVersion getFirstVersion()
          get the first jdf version where an attribute of this type is valid
 JDFElement.EnumVersion getLastVersion()
          get the last jdf version where an attribute of this type is valid
static boolean matchesAttribute(String smallAtt, String bigAtt, AttributeInfo.EnumAttributeType dataType)
          checks whether smallAtt is a matching subset of bigAtt depending on datatype
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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 test
bigAtt - the big att, e.g. list to test against
dataType - 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.