Package com.oss.metadata
Class Fields
java.lang.Object
com.oss.metadata.Fields
The Fields class represents the properties of a list of fields of a structured
ASN.1 type, such as SEQUENCE or SET.
- Since:
- ASN.1/Java 2.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
count()
Return a count of the number of fields in the FieldInfo array.abstract FieldInfo
getFieldInfo
(int i) Return the FieldInfo for the field at the index, counting from zero.getFieldInfo
(String name) Returns the FieldInfo for the field with the specified name.
-
Constructor Details
-
Fields
public Fields()
-
-
Method Details
-
count
Return a count of the number of fields in the FieldInfo array.- Returns:
- number of fields.
- Throws:
MetadataException
- if attempt to resolve the weak reference fails: class could not be found or typeInfo was not available.
-
getFieldInfo
Return the FieldInfo for the field at the index, counting from zero.- Parameters:
i
- field index.- Returns:
- i-th FieldInfo, where 0 is the first index.
- Throws:
MetadataException
- if attempt to resolve the weak reference fails: class could not be found or typeInfo was not available.
-
getFieldInfo
Returns the FieldInfo for the field with the specified name.- Parameters:
name
- field name.- Returns:
- FieldInfo with the specified name, or null if no field with that name was found
- Throws:
MetadataException
- if attempt to resolve the weak reference fails: class could not be found or typeInfo was not available.
-