2004.04.29


com.jdc.lang
Class ObjectXML

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.lang.ObjectState
              |
              +--com.jdc.lang.ObjectXML

public class ObjectXML
extends ObjectState

ObjectXML is an XML representation of an Object.

Version:
1.0
Author:
Jay Damon
See Also:
ObjectString

Field Summary
 
Fields inherited from class com.jdc.lang.ObjectState
object
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
ObjectXML(Object object)
          Constructs a new ObjectXML object for the specified object.
 
Method Summary
 ObjectXML exclude(Object field)
          Excludes the requested field name in an XML representation of an object.
 ObjectXML exclude(Object[] fields)
          Excludes the requested field names in an XML representation of an object.
 ObjectXML include(String fieldName)
          Includes the requested field name in an XML representation of an object.
 ObjectXML include(String[] fieldNames)
          Includes the requested field names in an XML representation of an object.
 ObjectXML include(String[] fieldNames, String[] xmlNames)
          Includes the requested field names and XML aliases in an XML representation of an object.
 ObjectXML include(String fieldName, String xmlName)
          Includes the requested field name in an XML representation of an object.
static void main(String[] args)
          Tests the ObjectXML class.
 ObjectXML setLowerCase()
          Sets the isLowerCase flag.
 ObjectXML setMixedCase()
          Sets the isMixedCase flag.
 ObjectXML setUpperCase()
          Sets the isUpperCase flag.
 String toString()
          Returns an XML representation of an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectXML

public ObjectXML(Object object)
Constructs a new ObjectXML object for the specified object.

Method Detail

exclude

public ObjectXML exclude(Object field)
Excludes the requested field name in an XML representation of an object.

Returns:
ObjectXML

exclude

public ObjectXML exclude(Object[] fields)
Excludes the requested field names in an XML representation of an object.

Returns:
ObjectXML

include

public ObjectXML include(String fieldName)
Includes the requested field name in an XML representation of an object.

Returns:
ObjectXML

include

public ObjectXML include(String fieldName,
                         String xmlName)
Includes the requested field name in an XML representation of an object.

Returns:
ObjectXML

include

public ObjectXML include(String[] fieldNames)
Includes the requested field names in an XML representation of an object.

Returns:
ObjectXML

include

public ObjectXML include(String[] fieldNames,
                         String[] xmlNames)
Includes the requested field names and XML aliases in an XML representation of an object.

Returns:
ObjectXML

setLowerCase

public ObjectXML setLowerCase()
Sets the isLowerCase flag.

Returns:
ObjectXML

setMixedCase

public ObjectXML setMixedCase()
Sets the isMixedCase flag.

Returns:
ObjectXML

setUpperCase

public ObjectXML setUpperCase()
Sets the isUpperCase flag.

Returns:
ObjectXML

toString

public String toString()
Returns an XML representation of an object.

Overrides:
toString in class Object
Returns:
String

main

public static void main(String[] args)
Tests the ObjectXML class.


2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.