Class InfoObjectFieldInfo

java.lang.Object
com.oss.metadata.FieldInfo
com.oss.metadata.InfoObjectFieldInfo

public class InfoObjectFieldInfo extends FieldInfo
The InfoObjectFieldInfo class represents the properties of an individual component of an information object class. In the example below ERROR_CLASS is generated as an InfoObject. The SequenceInfo will contain three fields, one each for the properties of the category, code and Type fields:
    ERROR-CLASS ::= CLASS
   {
      &categoryPrintableString (SIZE(1)),
      &codeOBJECT IDENTIFIER UNIQUE,
      &Type
   } WITH SYNTAX {&category &code &Type}
    
Since:
ASN.1/Java 2.1
  • Method Details

    • isUnique

      public boolean isUnique()
      Returns true if the field has been defined to be unique, and false otherwise.
      Returns:
      true if the field is UNIQUE
    • isOptional

      public boolean isOptional()
      Returns true if the field is OPTIONAL, and false otherwise
      Overrides:
      isOptional in class FieldInfo
      Returns:
      true if the field is OPTIONAL
    • hasDefault

      public boolean hasDefault()
      Returns true if the field has a default value, and false if not.
      Overrides:
      hasDefault in class FieldInfo
      Returns:
      true if the field has a default value
    • getDefaultValue

      public AbstractData getDefaultValue()
      Returns the default value for this sequence field, and null if there is no default value.
      Overrides:
      getDefaultValue in class FieldInfo
      Returns:
      default value