|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.contentmanager.stubs.model.trees.Node
org.gcube.contentmanagement.contentmanager.stubs.model.trees.Leaf
public final class Leaf
A Node
with an inner value but without an identity or outgoing edges.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.gcube.contentmanagement.contentmanager.stubs.model.trees.Node |
---|
Node.State |
Constructor Summary | |
---|---|
Leaf(Leaf l)
Copy constructor, creates a clone of a given node. |
|
Leaf(java.lang.String id)
Creates an instance with a given identifier. |
|
Leaf(java.lang.String v,
java.util.Map<javax.xml.namespace.QName,java.lang.String> attributes)
Creates an instance with given attributes and a given value. |
|
Leaf(java.lang.String id,
Node.State state,
java.lang.String v,
java.util.Map<javax.xml.namespace.QName,java.lang.String> attributes)
Creates an instance with a given identifier, given attributes, and a given value. |
|
Leaf(java.lang.String id,
java.lang.String v)
Creates an instance with a given identifier and a given value. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
java.lang.String |
toString()
|
java.lang.String |
value()
Returns the inner value. |
void |
value(java.lang.String v)
Sets the inner value. |
Methods inherited from class org.gcube.contentmanagement.contentmanager.stubs.model.trees.Node |
---|
ancestors, ancestorsAndSelf, attribute, attribute, attribute, attributes, hasAttribute, hasAttribute, hasAttribute, id, parent, removeAttribute, removeAttribute, removeAttribute, setAttribute, setAttribute, setAttribute, state, uri |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Leaf(Leaf l)
n
- the node.public Leaf(java.lang.String id)
id
- the identifier.public Leaf(java.lang.String id, java.lang.String v)
id
- the identifier.v
- the value.public Leaf(java.lang.String v, java.util.Map<javax.xml.namespace.QName,java.lang.String> attributes)
attributes
- the attributes.public Leaf(java.lang.String id, Node.State state, java.lang.String v, java.util.Map<javax.xml.namespace.QName,java.lang.String> attributes)
id
- the identifier.v
- the value.attributes
- the attributes.Method Detail |
---|
public java.lang.String value()
public void value(java.lang.String v) throws java.lang.IllegalArgumentException
v
- the value.
java.lang.IllegalArgumentException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class Node
public int hashCode()
hashCode
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |