|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.percederberg.mibble.MibType
|
+--net.percederberg.mibble.type.TypeReference
A reference to a type symbol.
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 Summary | |
TypeReference(FileLocation location,
MibContext context,
java.lang.String name)
Creates a new type reference. |
|
TypeReference(FileLocation location,
MibContext context,
java.lang.String name,
java.util.ArrayList values)
Creates a new type reference. |
|
TypeReference(FileLocation location,
MibContext context,
java.lang.String name,
Constraint constraint)
Creates a new type reference. |
|
| Method Summary | |
FileLocation |
getLocation()
Returns the file containing the reference. |
MibSymbol |
getSymbol(java.lang.String name)
Returns a named MIB 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. |
| Methods inherited from class net.percederberg.mibble.MibType |
createReference, createReference, createReference, getName, getReferenceSymbol, getTag, hasReferenceTo, hasReferenceTo, hasTag, hasTag, isPrimitive, setReferenceSymbol, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TypeReference(FileLocation location,
MibContext context,
java.lang.String name)
location - the reference locationcontext - the reference contextname - the reference name
public TypeReference(FileLocation location,
MibContext context,
java.lang.String name,
Constraint constraint)
location - the reference locationcontext - the reference contextname - the reference nameconstraint - the additional type constraint
public TypeReference(FileLocation location,
MibContext context,
java.lang.String name,
java.util.ArrayList values)
location - the reference locationcontext - the reference contextname - the reference namevalues - the additional defined symbols| Method Detail |
public 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 log
MibException - if an error was encountered during the
initializationpublic FileLocation getLocation()
public boolean isCompatible(MibValue value)
isCompatible in class MibTypevalue - the value to check
public MibSymbol getSymbol(java.lang.String name)
getSymbol in interface MibContextname - the symbol name
public void setTag(boolean implicit,
MibTypeTag tag)
setTag in class MibTypeimplicit - the implicit inheritance flagtag - the new type tag
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||