org.inria.ns.reflex.xml.operator
Class StringOperator

java.lang.Object
  extended by org.inria.ns.reflex.xml.operator.AbstractXOperator
      extended by org.inria.ns.reflex.xml.operator.DefaultXOperator
          extended by org.inria.ns.reflex.xml.operator.StringOperator
All Implemented Interfaces:
XOperator

public class StringOperator
extends DefaultXOperator

XML operations on strings.

Only the static methods of this class are usable directly. To use the methods of the singleton, use the master operator that ensure the type of the arguments.

Author:
Philippe Poulard
See Also:
String, XMaster

Method Summary
 short getNodeType(Object referent)
          The referent behave like an XML text node.
 QName getTypeName(Object referent)
          Return the type of the referent.
static void register(XMaster xmaster)
          Registers this operator to the master operator.
 
Methods inherited from class org.inria.ns.reflex.xml.operator.DefaultXOperator
getAttributes, getChildren
 
Methods inherited from class org.inria.ns.reflex.xml.operator.AbstractXOperator
append, append, booleanValueOf, clear, clear, clearAll, clearAll, clone, clone, getAttributeValue, getCommentAt, getElementAt, getElementById, getElementsByName, getFamilyIndex, getFamilySize, getIndex, getNamedElementAt, getNamedProcessingInstructionAt, getNameIndex, getNameSize, getNamespaces, getNext, getNodeAt, getNodeKind, getParent, getPrevious, getProcessingInstructionAt, getQName, getRoot, getSize, getStringAttributeValue, getStringName, getTextAt, getType, getTypeIndex, getTypeSize, getValue, getXFactory, getXMLType, getXOperator, insertAfter, insertAfter, insertBefore, insertBefore, isAttribute, isComment, isDocument, isElement, isParentNode, isProcessingInstruction, isText, numberValueOf, remove, remove, removeAttribute, rename, rename, replace, replace, setAttribute, stringValueOf, update, update, valueOf
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

register

public static void register(XMaster xmaster)
Registers this operator to the master operator.

Parameters:
xmaster - The master operator.

getNodeType

public short getNodeType(Object referent)
The referent behave like an XML text node.

Specified by:
getNodeType in interface XOperator
Overrides:
getNodeType in class DefaultXOperator
Parameters:
referent - The referent object.
Returns:
This implementation returns the text-node-type.
See Also:
XType.TEXT_NODE

getTypeName

public QName getTypeName(Object referent)
Return the type of the referent.

Specified by:
getTypeName in interface XOperator
Overrides:
getTypeName in class DefaultXOperator
Parameters:
referent - An object.
Returns:
The class name of the object given, wrapped in a QName.