org.openmdx.base.accessor.generic.spi
Class MarshallingStructure_1

java.lang.Object
  extended by org.openmdx.base.accessor.generic.spi.MarshallingStructure_1
All Implemented Interfaces:
Serializable, Structure_1_0

public class MarshallingStructure_1
extends Object
implements Structure_1_0, Serializable

The Structure_1_0 interface.

See Also:
Serialized Form

Field Summary
protected  ObjectFactory_1_0 marshaller
           
protected  Structure_1_0 structure
           
 
Constructor Summary
MarshallingStructure_1(Structure_1_0 structure, ObjectFactory_1_0 marshaller)
          Constructor
 
Method Summary
 boolean equals(Object object)
          Indicates whether some other object is "equal to" this one.
 List objFieldNames()
          Return the field names in this structure.
 String objGetType()
          Returns the object's model class.
 Object objGetValue(String fieldName)
          Get a field.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

marshaller

protected ObjectFactory_1_0 marshaller

structure

protected Structure_1_0 structure
Constructor Detail

MarshallingStructure_1

public MarshallingStructure_1(Structure_1_0 structure,
                              ObjectFactory_1_0 marshaller)
Constructor

Parameters:
the - marshaller to be applied to the elements, filter and order objects.
The - delegate contains unmarshalled elements
Method Detail

objGetType

public String objGetType()
Returns the object's model class.

Specified by:
objGetType in interface Structure_1_0
Returns:
the object's model class

objFieldNames

public List objFieldNames()
Return the field names in this structure.

Specified by:
objFieldNames in interface Structure_1_0
Returns:
the (String) field names contained in this structure

objGetValue

public Object objGetValue(String fieldName)
                   throws ServiceException
Get a field.

Specified by:
objGetValue in interface Structure_1_0
Parameters:
fieldName - the fields's name
Returns:
the fields value which may be null.
Throws:
ServiceException - BAD_MEMBER_NAME if the structure has no such field

toString

public String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

Overrides:
toString in class Object
Returns:
a string representation of the object.

equals

public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation:

The equals method for class Object implements the most discriminating possible equivalence relation on objects; that is, for any reference values x and y, this method returns true if and only if x and y refer to the same object (x==y has the value true).

Overrides:
equals in class Object
Returns:
true if this object is the same as the obj argument; false otherwise.


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.