org.cubeengine.converter.node
Class NullNode

java.lang.Object
  extended by org.cubeengine.converter.node.Commentable
      extended by org.cubeengine.converter.node.Node
          extended by org.cubeengine.converter.node.NullNode

public class NullNode
extends Node

A Null Node

Represents a non-existent value


Method Summary
 String asString()
           
 String asText()
          Tries to convert the value of the Node into a string
static NullNode emptyNode()
          Creates a NullNode
 Object 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
 

Method Detail

emptyNode

public static NullNode emptyNode()
Creates a NullNode

Returns:
the NullNode

getValue

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

Specified by:
getValue in class Node
Returns:
the NodeValue

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
Returns:
the converted Node value

asString

public String asString()
Specified by:
asString in class Node


Copyright © 2013–2017. All rights reserved.