ch.panter.li.bi.asn
Class AsnTagImpl

java.lang.Object
  extended by ch.panter.li.bi.asn.AsnTagImpl
All Implemented Interfaces:
AsnTag, Comparable

public final class AsnTagImpl
extends Object
implements AsnTag


Constructor Summary
AsnTagImpl()
           
AsnTagImpl(AsnTag copy)
           
AsnTagImpl(AsnTagClass tagClass, AsnTagNature tagNature, int tagNumber)
           
AsnTagImpl(AsnTagNature tagNature, int tagNumber)
           
 
Method Summary
 int compareTo(Object compare)
           
 boolean equals(Object compare)
           
 AsnTagClass getTagClass()
           
 AsnTagNature getTagNature()
           
 AsnIntegralNumber getTagNumber()
           
 AsnIntegralNumberImpl getWritableTagNumber()
           
 int hashCode()
           
 boolean isConstructed()
           
 boolean isPrimitive()
           
 boolean isSame(AsnTag other)
          Determines whether this instance is of the same tag class and has the same tag number as the other instance.
 void setConstructed(boolean constructed)
           
 void setPrimitive(boolean primitive)
           
 void setTagClass(AsnTagClass tagClass)
           
 void setTagNature(AsnTagNature tagNature)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsnTagImpl

public AsnTagImpl()

AsnTagImpl

public AsnTagImpl(AsnTagClass tagClass,
                  AsnTagNature tagNature,
                  int tagNumber)

AsnTagImpl

public AsnTagImpl(AsnTag copy)

AsnTagImpl

AsnTagImpl(AsnTagNature tagNature,
           int tagNumber)
Method Detail

getTagClass

public final AsnTagClass getTagClass()
Specified by:
getTagClass in interface AsnTag

getTagNature

public final AsnTagNature getTagNature()
Specified by:
getTagNature in interface AsnTag

setTagNature

public final void setTagNature(AsnTagNature tagNature)

setTagClass

public final void setTagClass(AsnTagClass tagClass)

isConstructed

public final boolean isConstructed()
Specified by:
isConstructed in interface AsnTag

setConstructed

public final void setConstructed(boolean constructed)

isPrimitive

public final boolean isPrimitive()
Specified by:
isPrimitive in interface AsnTag

setPrimitive

public final void setPrimitive(boolean primitive)

isSame

public final boolean isSame(AsnTag other)
Description copied from interface: AsnTag
Determines whether this instance is of the same tag class and has the same tag number as the other instance. Doesn't look at the constructed/primitive flag.

Specified by:
isSame in interface AsnTag
Parameters:
other - the other tag to compare this instance against
Returns:
true if class and number are the same, false otherwise

getTagNumber

public final AsnIntegralNumber getTagNumber()
Specified by:
getTagNumber in interface AsnTag

getWritableTagNumber

public final AsnIntegralNumberImpl getWritableTagNumber()

compareTo

public int compareTo(Object compare)
Specified by:
compareTo in interface Comparable

equals

public final boolean equals(Object compare)
Overrides:
equals in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright 2007-2007 SourceForge. All Rights Reserved.