ch.panter.li.bi.asn.model
Interface AsnType

All Superinterfaces:
NamedItem
All Known Implementing Classes:
AsnTypeImpl

public interface AsnType
extends NamedItem


Method Summary
 void checkCompatible(AsnTag tagToCheck)
          Determines the same check as isCompatible but throws in case of an incompatibility.
 AsnTag deriveApplicationTag(int tagNumber)
           
 AsnTag deriveContextTag(int tagNumber)
           
 AsnTag derivePrivateTag(int tagNumber)
           
 AsnTag deriveTag(AsnTagClass tagClass, int tagNumber)
           
 AsnType getBaseType()
           
 ReadOnlyCollection<AsnConstraint> getConstraints()
           
 AsnField getFieldByTag(AsnTag tag)
          Searches the fields of this instance for one with a tag matching the given tag.
 ReadOnlyNamedItemMap<AsnField> getFields()
           
 AsnModule getModule()
           
 AsnType getRootType()
           
 AsnTag getTag()
           
 boolean hasAnyConstraints()
           
 boolean hasConstraints()
           
 boolean hasFields()
           
 boolean isCompatible(AsnTag tagToCheck)
          Determines whether this instances tag might represent a value for this type.
 boolean isComplex()
           
 boolean isConstructedEncodingAllowed()
           
 boolean isDerivedFrom(AsnType baseTypeToCheckFor)
           
 boolean isExtensionAllowed()
           
 boolean isRootType()
           
 boolean isSimple()
           
 boolean isUniqueTagsRequired()
           
 
Methods inherited from interface ch.panter.li.bi.util.NamedItem
getName
 

Method Detail

getModule

AsnModule getModule()

getTag

AsnTag getTag()

deriveTag

AsnTag deriveTag(AsnTagClass tagClass,
                 int tagNumber)

deriveApplicationTag

AsnTag deriveApplicationTag(int tagNumber)

deriveContextTag

AsnTag deriveContextTag(int tagNumber)

derivePrivateTag

AsnTag derivePrivateTag(int tagNumber)

isCompatible

boolean isCompatible(AsnTag tagToCheck)
Determines whether this instances tag might represent a value for this type. Tests whether the constructed/primitive flag has a value allowed by this type.

Parameters:
tagToCheck - the tag to check
Returns:
true if the nature of the given tag is allowed by this type

checkCompatible

void checkCompatible(AsnTag tagToCheck)
                     throws IllegalArgumentException
Determines the same check as isCompatible but throws in case of an incompatibility.

Parameters:
tagToCheck - the tag to check
Throws:
IllegalArgumentException - in case the tag is considered incompatible

isSimple

boolean isSimple()

isComplex

boolean isComplex()

isConstructedEncodingAllowed

boolean isConstructedEncodingAllowed()

isRootType

boolean isRootType()

getBaseType

AsnType getBaseType()

getRootType

AsnType getRootType()

isDerivedFrom

boolean isDerivedFrom(AsnType baseTypeToCheckFor)

isExtensionAllowed

boolean isExtensionAllowed()

isUniqueTagsRequired

boolean isUniqueTagsRequired()

hasConstraints

boolean hasConstraints()

hasAnyConstraints

boolean hasAnyConstraints()

getConstraints

ReadOnlyCollection<AsnConstraint> getConstraints()

hasFields

boolean hasFields()

getFields

ReadOnlyNamedItemMap<AsnField> getFields()

getFieldByTag

AsnField getFieldByTag(AsnTag tag)
Searches the fields of this instance for one with a tag matching the given tag.

Parameters:
tag - the tag of the field to search for
Returns:
the field that matches the given tag or null if no match was found


Copyright 2007-2007 SourceForge. All Rights Reserved.