jSyncManager

org.jSyncManager.API.Protocol.Util
Class JSXMLElement

java.lang.Object
  |
  +--org.jdom.Element
        |
        +--org.jSyncManager.API.Protocol.Util.JSXMLElement
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
JSXMLDate

public class JSXMLElement
extends org.jdom.Element

A single node of the JSXML XML Tree. This node is used for all types of elements in the XML tree, including CDATA.

Version:
$Revision: 1.5 $
Author:
David BARTMESS <dingodave@edingo.net>
Last modified by: $Author: dingodave $ on $Date: 2003/05/02 16:30:21 $.
See Also:
Serialized Form

Fields inherited from class org.jdom.Element
additionalNamespaces, attributes, content, name, namespace, parent
 
Constructor Summary
JSXMLElement()
          Creates a new instance of JSXMLElement
JSXMLElement(java.lang.String name)
          Creates a new instance of JSXMLElement with the name given.
JSXMLElement(java.lang.String name, boolean value)
          Creates a new instance of JSXMLElement with the given name and content of the boolean given.
JSXMLElement(java.lang.String name, byte value)
          Creates a new instance of JSXMLElement with the given name and content of the byte value given.
JSXMLElement(java.lang.String name, byte[] value)
          Creates a new instance of JSXMLElement with the given name and content of the boolean array values given.
JSXMLElement(java.lang.String name, java.util.Calendar dateentry)
          Creates a new instance of JSXMLElement with the given name and content of the Calendar date given.
JSXMLElement(java.lang.String name, char value)
          Creates a new instance of JSXMLElement with the given name and content of the char given.
JSXMLElement(java.lang.String name, char[] value)
          Creates a new set of instances of JSXMLElement with the given name and content of the char array values given.
JSXMLElement(java.lang.String name, double value)
          Creates a new instance of JSXMLElement with the given name and content of the double value given.
JSXMLElement(java.lang.String name, double[] value)
          Creates a new instance of JSXMLElement with the given name and content of the array of double values given.
JSXMLElement(java.lang.String name, float value)
          Creates a new instance of JSXMLElement with the given name and content of the float given.
JSXMLElement(java.lang.String name, float[] value)
          Creates a new instance of JSXMLElement with the given name and content of the array of float values given.
JSXMLElement(java.lang.String name, int value)
          Creates a new instance of JSXMLElement with the given name and content of the int value given.
JSXMLElement(java.lang.String name, int[] value)
          Creates a new set of instances of JSXMLElement with the given name and content of the int array values given.
JSXMLElement(java.lang.String name, long value)
          Creates a new instance of JSXMLElement with the given name and content of the long given.
JSXMLElement(java.lang.String name, long[] value)
          Creates a new instance of JSXMLElement with the given name and content of the long value array given.
JSXMLElement(java.lang.String name, java.lang.String value)
          Creates a new instance of JSXMLElement with the given name and content of the String given.
JSXMLElement(java.lang.String name, java.lang.String[] value)
          Creates a new instance of JSXMLElement with the given name and content of the String array given.
JSXMLElement(java.lang.String name, java.lang.StringBuffer value)
          Creates a new instance of JSXMLElement with the given name and content of the StringBuffer value given.
 
Method Summary
 boolean readBooleanElement()
          Read boolean element and return the value.
 byte[] readByteArrayElement()
          Read byte array element and return the value in a byte array.
 byte readByteElement()
          Read byte element and return the value.
 char[] readCharArrayElement()
          Read char array element and return the value in a byte array.
 char readCharElement()
          Read char element and return the value.
 java.util.Calendar readDateElement()
          Read date element and return the Calendar value.
 double[] readDoubleArrayElement()
          Read double array element and return the value in a byte array.
 double readDoubleElement()
          Read double element and return the value.
 float[] readFloatArrayElement()
          Read float array element and return the value in a byte array.
 float readFloatElement()
          Read float element and return the value.
 int[] readIntArrayElement()
          Read int array element and return the value in a byte array.
 int readIntElement()
          Read int element and return the value.
 long[] readLongArrayElement()
          Read long array element and return the value in a byte array.
 long readLongElement()
          Read long element and return the value.
 java.lang.String[] readStringArrayElement()
          Read the Child contents of the JSXMLElement, and create a String array from them.
 
Methods inherited from class org.jdom.Element
addContent, addContent, addContent, addContent, addContent, addContent, addContent, addNamespaceDeclaration, clone, detach, equals, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getChild, getChild, getChildren, getChildren, getChildren, getChildText, getChildText, getChildTextNormalize, getChildTextNormalize, getChildTextTrim, getChildTextTrim, getContent, getContent, getDocument, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespaceURI, getParent, getQualifiedName, getText, getTextNormalize, getTextTrim, hasChildren, hashCode, isAncestor, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttribute, setAttribute, setAttributes, setChildren, setContent, setDocument, setName, setNamespace, setParent, setText, toString
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSXMLElement

public JSXMLElement()
Creates a new instance of JSXMLElement

JSXMLElement

public JSXMLElement(java.lang.String name)
Creates a new instance of JSXMLElement with the name given.
Parameters:
name - String name of element

JSXMLElement

public JSXMLElement(java.lang.String name,
                    java.util.Calendar dateentry)
Creates a new instance of JSXMLElement with the given name and content of the Calendar date given.
Parameters:
name - String name of element.
dateentry - Calendar object for date content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    java.lang.String value)
Creates a new instance of JSXMLElement with the given name and content of the String given.
Parameters:
name - String name of element.
value - String object for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    java.lang.String[] value)
Creates a new instance of JSXMLElement with the given name and content of the String array given. Each String content element is created as its own XML Element.
Parameters:
name - String name of element.
value - String array of content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    boolean value)
Creates a new instance of JSXMLElement with the given name and content of the boolean given.
Parameters:
name - String name of element.
value - Boolean primitive type for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    char value)
Creates a new instance of JSXMLElement with the given name and content of the char given.
Parameters:
name - String name of element.
value - char primitive type for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    char[] value)
Creates a new set of instances of JSXMLElement with the given name and content of the char array values given.
Parameters:
name - String name of element.
value - array of char primitive types for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    byte value)
Creates a new instance of JSXMLElement with the given name and content of the byte value given.
Parameters:
name - String name of element.
value - byte primitive type for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    byte[] value)
Creates a new instance of JSXMLElement with the given name and content of the boolean array values given.
Parameters:
name - String name of element.
value - byte array of values for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    int value)
Creates a new instance of JSXMLElement with the given name and content of the int value given.
Parameters:
name - String name of element.
value - int primitive type for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    int[] value)
Creates a new set of instances of JSXMLElement with the given name and content of the int array values given.
Parameters:
name - String name of element.
value - int primitive type array for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    long value)
Creates a new instance of JSXMLElement with the given name and content of the long given.
Parameters:
name - String name of element.
value - long primitive type for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    long[] value)
Creates a new instance of JSXMLElement with the given name and content of the long value array given.
Parameters:
name - String name of element.
value - array of long primitive types for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    float value)
Creates a new instance of JSXMLElement with the given name and content of the float given.
Parameters:
name - String name of element.
value - float primitive type for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    float[] value)
Creates a new instance of JSXMLElement with the given name and content of the array of float values given.
Parameters:
name - String name of element.
value - float array of primitive types for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    double value)
Creates a new instance of JSXMLElement with the given name and content of the double value given.
Parameters:
name - String name of element.
value - double primitive type for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    double[] value)
Creates a new instance of JSXMLElement with the given name and content of the array of double values given.
Parameters:
name - String name of element.
value - double array of primitive types for content.

JSXMLElement

public JSXMLElement(java.lang.String name,
                    java.lang.StringBuffer value)
Creates a new instance of JSXMLElement with the given name and content of the StringBuffer value given.
Parameters:
name - String name of element.
value - StringBuffer type for content.
Method Detail

readStringArrayElement

public java.lang.String[] readStringArrayElement()
Read the Child contents of the JSXMLElement, and create a String array from them.
Returns:
String[] An array of String values from the Children of this Element.

readBooleanElement

public boolean readBooleanElement()
Read boolean element and return the value.
Returns:
boolean value content of the element.

readByteElement

public byte readByteElement()
Read byte element and return the value.
Returns:
byte value content of the element.

readByteArrayElement

public byte[] readByteArrayElement()
Read byte array element and return the value in a byte array.
Returns:
byte array value content of the element's children.

readCharElement

public char readCharElement()
Read char element and return the value.
Returns:
char value content of the element.

readCharArrayElement

public char[] readCharArrayElement()
Read char array element and return the value in a byte array.
Returns:
char array value content of the element's children.

readIntElement

public int readIntElement()
Read int element and return the value.
Returns:
int value content of the element.

readIntArrayElement

public int[] readIntArrayElement()
Read int array element and return the value in a byte array.
Returns:
int array value content of the element's children.

readLongElement

public long readLongElement()
Read long element and return the value.
Returns:
long value content of the element.

readLongArrayElement

public long[] readLongArrayElement()
Read long array element and return the value in a byte array.
Returns:
long array value content of the element's children.

readFloatElement

public float readFloatElement()
Read float element and return the value.
Returns:
float value content of the element.

readFloatArrayElement

public float[] readFloatArrayElement()
Read float array element and return the value in a byte array.
Returns:
float array value content of the element's children.

readDoubleElement

public double readDoubleElement()
Read double element and return the value.
Returns:
double value content of the element.

readDoubleArrayElement

public double[] readDoubleArrayElement()
Read double array element and return the value in a byte array.
Returns:
double array value content of the element's children.

readDateElement

public java.util.Calendar readDateElement()
Read date element and return the Calendar value.
Returns:
Calendar value content of the element.

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.