public class SmiSyntaxImpl extends Object implements SmiSyntax, Serializable
SmiSyntaxImpl class represents the attributes of a SMI SYNTAX clause.| Constructor and Description |
|---|
SmiSyntaxImpl(String syntaxClause,
SmiSyntaxType smiSyntaxType,
int smiSyntax,
List<SmiSyntaxElement> smiSyntaxElements) |
SmiSyntaxImpl(String syntaxClause,
SmiSyntaxType syntaxType,
int smiSyntax,
List<SmiSyntaxElement> elementList,
SmiSyntax resolvedSyntax,
String resolvedDisplayHint) |
| Modifier and Type | Method and Description |
|---|---|
List<SmiSyntaxElement> |
getElements()
Gets the syntax elements, i.e. range or enumeration elements.
|
String |
getResolvedDisplayHint()
Returns the DISPLAY-HINT clause of the TEXTUAL-CONVENTION referenced by this syntax of type
SmiSyntaxType.CONVENTION. |
SmiSyntax |
getResolvedSyntax()
Returns the resolved syntax.
|
int |
getSyntax()
Returns the BER syntax identifier for the simple of application type this syntax is based on.
|
String |
getSyntaxClause()
Returns the value of the syntax clause.
|
SmiSyntaxType |
getType()
Returns the type of syntax clause.
|
boolean |
isEnumeration()
Indicates whether this SYNTAX clause is an enumeration.
|
String |
toString() |
public SmiSyntaxImpl(String syntaxClause, SmiSyntaxType smiSyntaxType, int smiSyntax, List<SmiSyntaxElement> smiSyntaxElements)
public SmiSyntaxImpl(String syntaxClause, SmiSyntaxType syntaxType, int smiSyntax, List<SmiSyntaxElement> elementList, SmiSyntax resolvedSyntax, String resolvedDisplayHint)
public String getSyntaxClause()
SmiSyntaxSmiSyntax.getType() for details.getSyntaxClause in interface SmiSyntaxpublic List<SmiSyntaxElement> getElements()
SmiSyntaxgetElements in interface SmiSyntaxnull if the syntax has no elements.public boolean isEnumeration()
SmiSyntaxisEnumeration in interface SmiSyntaxtrue only if all elements returned by SmiSyntax.getElements() are
of type SmiSyntaxElement.Type.Enumeration.public SmiSyntaxType getType()
SmiSyntaxpublic SmiSyntax getResolvedSyntax()
SmiSyntaxSmiSyntaxType.APPLICATION or
SmiSyntaxType.SIMPLE. Thus, a syntax of type SmiSyntaxType.CONVENTION
will return the SmiSyntax as defined by the referenced textual convention. Note: TEXTUAL CONVENTION and SMIv1
syntax assignments must not be nested in SMIv2. For SMIv1, the effective (artificial) syntax is returned for nested
conventions.getResolvedSyntax in interface SmiSyntaxthis otherwise. If null is returned,
the referenced convention could not be resolved with the currently loaded MIB modules.public String getResolvedDisplayHint()
SmiSyntaxSmiSyntaxType.CONVENTION.getResolvedDisplayHint in interface SmiSyntaxnull if SmiSyntax.getType() is not
SmiSyntaxType.CONVENTION or the resolved textual convention has no display hint.public int getSyntax()
SmiSyntaxCopyright © 2015 SNMP4J.com. All Rights Reserved.