Package com.oss.metadata
Class ComponentRelations
java.lang.Object
com.oss.metadata.ComponentRelations
The ComponentRelations class encapsulates a list of component
relations used to define component relation constraints.
Each OpenType has an ASN.1 component relation constraint or constraints.
The component relation constraint references
other fields and an information object set. It is used to determine the
value at the time of automatic encoding and decoding. So for example,
Procedure ::= SEQUENCE { opcode INTEGER, parameter SEQUENCE { parameterId PARAMETER.&id ({KNOWN-PARAMETERS}), value PARAMETER.&Type ({KNOWN-PARAMETERS}{@.parameterId}) } }PARAMETER.&Type is an OpenType,
({@.parameterId})
is a component relation.
If there were references to multiple fields, there would be
multiple component relations. The ComponentRelations class
is used if there is one or more references.- Since:
- ASN.1/Java 2.1
-
Method Summary
Modifier and TypeMethodDescriptionint
count()
Return the number of component relations in the array.getComponentRelations
(int i) Return the component relation element which is at position i of the array.
-
Method Details
-
count
public int count()Return the number of component relations in the array.- Returns:
- number of component relations in the array.
-
getComponentRelations
Return the component relation element which is at position i of the array.- Parameters:
i
- position of the component relation element in the array.- Returns:
- component relation element at position i.
-