Package com.oss.metadata
Class InfoObjectFieldInfo
java.lang.Object
com.oss.metadata.FieldInfo
com.oss.metadata.InfoObjectFieldInfo
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 Summary
Modifier and TypeMethodDescriptionReturns the default value for this sequence field, and null if there is no default value.boolean
Returns true if the field has a default value, and false if not.boolean
Returns true if the field is OPTIONAL, and false otherwiseboolean
isUnique()
Returns true if the field has been defined to be unique, and false otherwise.Methods inherited from class com.oss.metadata.FieldInfo
getFieldName, getTypeInfo, getTypeInfo, isExtension, isGroup, isGroup, isGrouped, isReferenced, isReferencedByOpenType, isRemoved
-
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 classFieldInfo
- 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 classFieldInfo
- Returns:
- true if the field has a default value
-
getDefaultValue
Returns the default value for this sequence field, and null if there is no default value.- Overrides:
getDefaultValue
in classFieldInfo
- Returns:
- default value
-