public class SequenceType extends MibType
Constructor and Description |
---|
SequenceType(java.util.ArrayList<ElementType> elements)
Creates a new sequence MIB type.
|
Modifier and Type | Method and Description |
---|---|
MibType |
createReference()
Creates a type reference to this type.
|
ElementType[] |
getAllElements()
Returns all the element types.
|
MibType |
initialize(MibSymbol symbol,
MibLoaderLog log)
Initializes the MIB type.
|
boolean |
isCompatible(MibValue value)
Checks if the specified value is compatible with this type.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
createReference, createReference, getComment, getName, getReferenceSymbol, getTag, hasReferenceTo, hasReferenceTo, hasTag, hasTag, isPrimitive, setReferenceSymbol, setTag
public SequenceType(java.util.ArrayList<ElementType> elements)
elements
- the list of element typespublic MibType initialize(MibSymbol symbol, MibLoaderLog log) throws MibException
NOTE: This is an internal method that should only be called by the MIB loader.
initialize
in class MibType
symbol
- the MIB symbol containing this typelog
- the MIB loader logMibException
- if an error was encountered during the
initializationpublic MibType createReference()
NOTE: This is an internal method that should only be called by the MIB loader.
createReference
in class MibType
public boolean isCompatible(MibValue value)
isCompatible
in class MibType
value
- the value to checkpublic ElementType[] getAllElements()