Class AtrInfo

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

public class AtrInfo extends Object
  • Field Details

    • MAXLOOP

      protected static final int MAXLOOP
      See Also:
    • validity

      protected final long validity
  • Constructor Details

  • 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 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
    • matchesTokenList

      public static boolean matchesTokenList(String smallAtt, String bigAtt)
    • getAtrType

      public AttributeInfo.EnumAttributeType getAtrType()
      Returns:
      Returns the atrType.
    • getValidityStatus

      public long getValidityStatus()
      Returns:
      Returns the atrValidityStatus.
    • getEnumEnum

      public 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()
      See Also:
    • 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: