public class TypeReference extends MibType implements MibContext
NOTE: This class is used internally during the MIB parsing only. After loading a MIB file successfully, all type references will have been resolved to other MIB types. Do NOT use or reference this class.
| Constructor and Description |
|---|
TypeReference(MibFileRef fileRef,
MibContext context,
java.lang.String name)
Creates a new type reference.
|
TypeReference(MibFileRef fileRef,
MibContext context,
java.lang.String name,
java.util.ArrayList<?> values)
Creates a new type reference.
|
TypeReference(MibFileRef fileRef,
MibContext context,
java.lang.String name,
Constraint constraint)
Creates a new type reference.
|
| Modifier and Type | Method and Description |
|---|---|
MibSymbol |
findSymbol(java.lang.String name,
boolean expanded)
Searches for a named MIB symbol.
|
MibFileRef |
getFileRef()
Returns the reference MIB file location.
|
MibSymbol |
getSymbol()
Returns the referenced symbol.
|
MibType |
initialize(MibSymbol symbol,
MibLoaderLog log)
Initializes the MIB type.
|
boolean |
isCompatible(MibValue value)
Checks if the specified value is compatible with this type.
|
void |
setTag(boolean implicit,
MibTypeTag tag)
Sets the type tag.
|
createReference, createReference, createReference, getComment, getName, getReferenceSymbol, getTag, hasReferenceTo, hasReferenceTo, hasTag, hasTag, isPrimitive, setReferenceSymbol, toStringpublic TypeReference(MibFileRef fileRef, MibContext context, java.lang.String name)
fileRef - the reference MIB file locationcontext - the reference contextname - the reference namepublic TypeReference(MibFileRef fileRef, MibContext context, java.lang.String name, Constraint constraint)
fileRef - the reference MIB file locationcontext - the reference contextname - the reference nameconstraint - the additional type constraintpublic TypeReference(MibFileRef fileRef, MibContext context, java.lang.String name, java.util.ArrayList<?> values)
fileRef - the reference MIB file locationcontext - the reference contextname - the reference namevalues - the additional defined symbolspublic 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 MibTypesymbol - the MIB symbol containing this typelog - the MIB loader logMibException - if an error was encountered during the
initializationpublic MibFileRef getFileRef()
public MibSymbol getSymbol()
public boolean isCompatible(MibValue value)
isCompatible in class MibTypevalue - the value to checkpublic MibSymbol findSymbol(java.lang.String name, boolean expanded)
NOTE: This is an internal method that should only be called by the MIB loader.
findSymbol in interface MibContextname - the symbol nameexpanded - the expanded scope flagpublic void setTag(boolean implicit,
MibTypeTag tag)