org.cubeengine.converter.node
Class ValueNode<V>

java.lang.Object
  extended by org.cubeengine.converter.node.Commentable
      extended by org.cubeengine.converter.node.Node<V>
          extended by org.cubeengine.converter.node.ValueNode<V>
Direct Known Subclasses:
BooleanNode, ByteNode, CharNode, DoubleNode, FloatNode, IntNode, LongNode, ShortNode, StringNode

public abstract class ValueNode<V>
extends Node<V>


Constructor Summary
ValueNode(V value)
           
 
Method Summary
 String asString()
           
 String asText()
          Tries to convert the value of the Node into a string
 V getValue()
          Gets the Value contained in this Node
 
Methods inherited from class org.cubeengine.converter.node.Node
isInherited, setInherited
 
Methods inherited from class org.cubeengine.converter.node.Commentable
getComments, setComments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueNode

public ValueNode(V value)
Method Detail

getValue

public V getValue()
Description copied from class: Node
Gets the Value contained in this Node

Specified by:
getValue in class Node<V>
Returns:
the NodeValue

asString

public String asString()
Specified by:
asString in class Node<V>

asText

public String asText()
Description copied from class: Node
Tries to convert the value of the Node into a string

Specified by:
asText in class Node<V>
Returns:
the converted Node value


Copyright © 2013–2017. All rights reserved.