org.oXML.type
Class StringNode

java.lang.Object
  extended byorg.oXML.type.AbstractNode
      extended byorg.oXML.type.StringNode
All Implemented Interfaces:
Node

public class StringNode
extends AbstractNode

ObjectBox - o:XML compiler and interpreter for more information see http://www.o-xml.org/objectbox Copyright (C) 2002/2003 Martin Klang, Alpha Plus Technology Ltd email: martin at hack.org This class has been generated from an o:XML template


Field Summary
static Type TYPE
           
 
Fields inherited from class org.oXML.type.AbstractNode
me
 
Constructor Summary
StringNode()
          generated default constructor
StringNode(AbstractNode me, Type type)
           
StringNode(Node value)
          generated constructor, called directly
StringNode(java.lang.String value)
           
StringNode(StringNode other, boolean deep)
          generated constructor, called directly
 
Method Summary
 Node _boolean()
           
 Node bytes()
           
 Node concat(Node other)
           
 Node contains(Node other)
           
 Node copy(boolean deep)
           
 Node endsWith(Node other)
           
 java.lang.String getString()
           
 int hashCode()
           
 Node indexOf(Node other)
           
 void init()
          generated default initialiser
 void init(Node value)
           
 void init(StringNode other, boolean deep)
           
 Node lastIndexOf(Node other)
           
 Node length()
           
 Node lower()
           
 Node match(Node pattern)
           
 Node match(Node pattern, Node limit)
           
 Node matches(Node pattern)
           
 StringNode merge(Node other)
           
 Node number()
           
static double numberValue(java.lang.String value)
          turn a string into a number
 Node split(Node pattern)
           
 Node split(Node pattern, Node limit)
           
 Node startsWith(Node other)
           
 Node string()
           
 Node substitute(Node pattern, Node substitution)
           
 Node substitute(Node pattern, Node substitution, Node limit)
           
 Node substring(Node from)
           
 Node substring(Node from, Node to)
           
static java.lang.String substring(java.lang.String string, double index)
           
static java.lang.String substring(java.lang.String string, double index1, double index2)
           
 Node substringAfter(Node other)
           
 Node substringAfterLast(Node other)
           
 Node substringBefore(Node other)
           
 Node substringBeforeLast(Node other)
           
 java.lang.String toString()
           
 Node trim()
           
 Node upper()
           
 
Methods inherited from class org.oXML.type.AbstractNode
addChildNode, booleanValue, byteValue, cast, cast, equals, equals, getAttribute, getAttributes, getAttributeValue, getChildNodes, getDocument, getInstance, getName, getNextSibling, getParent, getPreviousSibling, getType, hasInstance, insert, numberValue, removeChild, setAttribute, setAttribute, setInstance, setName, setParent, stringValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final Type TYPE
Constructor Detail

StringNode

public StringNode(AbstractNode me,
                  Type type)

StringNode

public StringNode()
generated default constructor


StringNode

public StringNode(java.lang.String value)

StringNode

public StringNode(StringNode other,
                  boolean deep)
generated constructor, called directly


StringNode

public StringNode(Node value)
generated constructor, called directly

Method Detail

init

public void init()
generated default initialiser

Overrides:
init in class AbstractNode

numberValue

public static final double numberValue(java.lang.String value)
turn a string into a number


getString

public java.lang.String getString()

substring

public static java.lang.String substring(java.lang.String string,
                                         double index)

substring

public static java.lang.String substring(java.lang.String string,
                                         double index1,
                                         double index2)

merge

public StringNode merge(Node other)

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractNode

toString

public java.lang.String toString()
Overrides:
toString in class AbstractNode

init

public void init(StringNode other,
                 boolean deep)

init

public void init(Node value)

length

public Node length()

upper

public Node upper()

lower

public Node lower()

concat

public Node concat(Node other)

startsWith

public Node startsWith(Node other)

endsWith

public Node endsWith(Node other)

contains

public Node contains(Node other)

substring

public Node substring(Node from)
               throws ObjectBoxException
Throws:
ObjectBoxException

substring

public Node substring(Node from,
                      Node to)

substringBefore

public Node substringBefore(Node other)

substringBeforeLast

public Node substringBeforeLast(Node other)

substringAfter

public Node substringAfter(Node other)

substringAfterLast

public Node substringAfterLast(Node other)

indexOf

public Node indexOf(Node other)

lastIndexOf

public Node lastIndexOf(Node other)

trim

public Node trim()

matches

public Node matches(Node pattern)
             throws ObjectBoxException
Throws:
ObjectBoxException

match

public Node match(Node pattern)
           throws ObjectBoxException
Throws:
ObjectBoxException

match

public Node match(Node pattern,
                  Node limit)
           throws ObjectBoxException
Throws:
ObjectBoxException

split

public Node split(Node pattern,
                  Node limit)
           throws ObjectBoxException
Throws:
ObjectBoxException

split

public Node split(Node pattern)
           throws ObjectBoxException
Throws:
ObjectBoxException

substitute

public Node substitute(Node pattern,
                       Node substitution,
                       Node limit)
                throws ObjectBoxException
Throws:
ObjectBoxException

substitute

public Node substitute(Node pattern,
                       Node substitution)
                throws ObjectBoxException
Throws:
ObjectBoxException

string

public Node string()

number

public Node number()

_boolean

public Node _boolean()

bytes

public Node bytes()

copy

public Node copy(boolean deep)