public class StringType extends MibType
Constructor and Description |
---|
StringType()
Creates a new string MIB type.
|
StringType(Constraint constraint)
Creates a new string MIB type.
|
Modifier and Type | Method and Description |
---|---|
MibType |
createReference()
Creates a type reference to this type.
|
MibType |
createReference(Constraint constraint)
Creates a constrained type reference to this type.
|
Constraint |
getConstraint()
Returns the optional type constraint.
|
boolean |
hasConstraint()
Checks if this type has any constraint.
|
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 type.
|
createReference, getComment, getName, getReferenceSymbol, getTag, hasReferenceTo, hasReferenceTo, hasTag, hasTag, isPrimitive, setReferenceSymbol, setTag
public StringType()
public StringType(Constraint constraint)
constraint
- the additional type constraintpublic 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 MibType createReference(Constraint constraint)
NOTE: This is an internal method that should only be called by the MIB loader.
createReference
in class MibType
constraint
- the type constraintpublic boolean hasConstraint()
public boolean isCompatible(MibValue value)
isCompatible
in class MibType
value
- the value to checkpublic Constraint getConstraint()