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

java.lang.Object
  extended by org.cubeengine.converter.node.Commentable
      extended by org.cubeengine.converter.node.Node<V>
Direct Known Subclasses:
ContainerNode, NullNode, ValueNode

public abstract class Node<V>
extends Commentable

A reflected Node


Constructor Summary
Node()
           
 
Method Summary
abstract  String asString()
           
abstract  String asText()
          Tries to convert the value of the Node into a string
abstract  V getValue()
          Gets the Value contained in this Node
 boolean isInherited()
          Wraps a serialized Object into a Node
 void setInherited(boolean inherited)
           
 
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

Node

public Node()
Method Detail

asText

public abstract String asText()
Tries to convert the value of the Node into a string

Returns:
the converted Node value

getValue

public abstract V getValue()
Gets the Value contained in this Node

Returns:
the NodeValue

asString

public abstract String asString()

isInherited

public boolean isInherited()
Wraps a serialized Object into a Node

Parameters:
o - a serialized Object
Returns:
the wrapped object

setInherited

public void setInherited(boolean inherited)


Copyright © 2013–2017. All rights reserved.