View Javadoc

1   // -- FILE ------------------------------------------------------------------
2   // name       : AsnTag.java
3   // project    : Panter: LI
4   // created    : lep - 2007.01.03
5   // language   : java
6   // environment: JDK 1.5.0
7   // copyright  : (c) 2006 by Panter llc, Switzerland
8   // license    : this is free software licensed under the GPL. see COPYING
9   // --------------------------------------------------------------------------
10  package ch.panter.li.bi.asn;
11  
12  
13  public interface AsnTag extends Comparable
14  {
15  
16    public AsnTagClass getTagClass();
17  
18    public AsnTagNature getTagNature();
19  
20    public boolean isConstructed();
21  
22    public boolean isPrimitive();
23  
24    /** Determines whether this instance is of the same tag class and has the same
25     tag number as the other instance. Doesn't look at the constructed/primitive flag.
26     @param other the other tag to compare this instance against
27     @return true if class and number are the same, false otherwise
28     */
29    public boolean isSame( final AsnTag other );
30  
31    public AsnIntegralNumber getTagNumber();
32  
33  } // interface AsnTag
34  
35  // -- EOF -------------------------------------------------------------------