pasn
Interface ASN1AlternativeObject

All Superinterfaces:
ASN1TransparentObject, java.lang.Iterable<ASN1MandatoryComponent>
All Known Implementing Classes:
ASN1Choice

public interface ASN1AlternativeObject
extends ASN1TransparentObject, java.lang.Iterable<ASN1MandatoryComponent>

Defines ASN.1 objects which hold one or more ASN.1 (tagged) objects, called components, and produce the encoding of the first ready-to-encode component

Author:
ncottin

Method Summary
 ASN1MandatoryComponent findComponent(int index)
           
 ASN1MandatoryComponent findComponent(java.lang.String name)
           
 java.util.Collection<ASN1MandatoryComponent> getComponents()
           Gets the set of all enclosed components.
 
Methods inherited from interface pasn.ASN1TransparentObject
decode, getInnerComponent, refersTo
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getComponents

java.util.Collection<ASN1MandatoryComponent> getComponents()

Gets the set of all enclosed components. At least one of these components must have a value to allow successfull encoding of this alternative. This operation is used during the decoding process

Returns:
A non-null set of inner ASN.1 objects correctly implicitly or explicitly tagged. A null set leads to an error of the decoding process

findComponent

ASN1MandatoryComponent findComponent(java.lang.String name)

findComponent

ASN1MandatoryComponent findComponent(int index)