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

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

public abstract class DelegatingStructure_1
extends Object
implements Structure_1_0

Abstract implementation of Structure_1_0 which delegates to a delegate.


Field Summary
protected  Structure_1_0 structure
          The delegate
 
Constructor Summary
protected DelegatingStructure_1(Structure_1_0 structure)
          Constructor
 
Method Summary
 boolean equals(Object object)
          Indicates whether some other object is "equal to" this one.
 List objFieldNames()
          Returns structure.objFieldNames()
 String objGetType()
          Returns the object's model class.
 Object objGetValue(String field)
          Return structure.getValue()
 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

structure

protected Structure_1_0 structure
The delegate

Constructor Detail

DelegatingStructure_1

protected DelegatingStructure_1(Structure_1_0 structure)
Constructor

Method Detail

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.

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()
Returns structure.objFieldNames()

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

objGetValue

public Object objGetValue(String field)
                   throws ServiceException
Return structure.getValue()

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


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