ch.panter.li.bi.asn
Class AsnTagImpl
java.lang.Object
ch.panter.li.bi.asn.AsnTagImpl
- All Implemented Interfaces:
- AsnTag, Comparable
public final class AsnTagImpl
- extends Object
- implements AsnTag
AsnTagImpl
public AsnTagImpl()
AsnTagImpl
public AsnTagImpl(AsnTagClass tagClass,
AsnTagNature tagNature,
int tagNumber)
AsnTagImpl
public AsnTagImpl(AsnTag copy)
AsnTagImpl
AsnTagImpl(AsnTagNature tagNature,
int tagNumber)
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.