public class YangIdentityref
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected T |
value
The value of this object, of which this class is a wrapper for.
|
| Constructor and Description |
|---|
YangIdentityref(Element identity)
Creates a YangIdentityref object from an Element.
|
YangIdentityref(java.lang.String s)
Creates a YangIdentityref object from a String, formatted as described
in
fromString(String). |
YangIdentityref(java.lang.String ns,
java.lang.String prefix,
java.lang.String id)
Creates a YangIdentityref object from three strings: identity namespace,
prefix and argument/identifier.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEqual(java.lang.Object obj)
Compares type of obj with this object to see if they can be equal.
|
void |
check()
Checks that the value of this object is not null.
|
com.tailf.jnc.YangBaseType<T> |
clone()
Clones this object and its value.
|
protected YangIdentityref |
cloneShallow()
Clones this object without cloning its value.
|
boolean |
equals(java.lang.Object obj)
Compares this object with another object for equality.
|
protected Element |
fromString(java.lang.String s)
Returns an identity element from a String.
|
T |
getValue() |
int |
hashCode() |
void |
setValue(java.lang.String s)
Sets the value of this object using a String.
|
void |
setValue(T value)
Sets the value of this object using a value of type T.
|
java.lang.String |
toString() |
protected T value
public YangIdentityref(java.lang.String s)
throws YangException
fromString(String).s - The string.YangException - If s is improperly formatted.public YangIdentityref(Element identity) throws YangException
identity - The initial value of the new YangIdentityref object.YangException - If an invariant was broken during initialization.public YangIdentityref(java.lang.String ns,
java.lang.String prefix,
java.lang.String id)
throws YangException
ns - identity module namespaceprefix - identity module prefixid - identity argument/identifierYangException - If an invariant was broken during initialization.protected Element fromString(java.lang.String s)
s - The string.public boolean canEqual(java.lang.Object obj)
YangTypeobj - Object to compare type with.protected YangIdentityref cloneShallow() throws YangException
YangExceptionpublic void setValue(java.lang.String s)
throws YangException
YangTypesetValue in interface YangType<T>s - A string containing the new value to set.YangException - If an invariant was broken during assignment, or
if value could not be parsed from s.public void setValue(T value)
throws YangException
YangTypesetValue in interface YangType<T>value - The new value to set.YangException - If an invariant was broken during assignment.public T getValue()
public void check()
throws YangException
YangTypecheck in interface YangType<T>YangException - If the value of this object is null.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to compare with.public int hashCode()
hashCode in class java.lang.Object