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, Delegating_1_0
Direct Known Subclasses:
MarshallingStructure_1

public abstract class DelegatingStructure_1
extends Object
implements Structure_1_0, Delegating_1_0

Abstract implementation of Structure_1_0 which delegates to a delegate.


Constructor Summary
protected DelegatingStructure_1(Structure_1_0 delegate)
          Constructor
 
Method Summary
 boolean equals(Object that)
          Indicates whether some other object is "equal to" this one.
protected  Structure_1_0 getDelegate()
          Retrieve structure.
 int hashCode()
           
 List objFieldNames()
          Returns structure.objFieldNames()
 Object objGetDelegate()
           
 String objGetType()
          Returns the object's model class.
 Object objGetValue(String field)
          Return structure.getValue()
protected  void setDelegate(Structure_1_0 delegate)
          Set structure.
 String toString()
          Retrieve the object's string representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelegatingStructure_1

protected DelegatingStructure_1(Structure_1_0 delegate)
Constructor

Method Detail

getDelegate

protected Structure_1_0 getDelegate()
Retrieve structure.

Returns:
Returns the structure.

setDelegate

protected void setDelegate(Structure_1_0 delegate)
Set structure.

Parameters:
delegate - The structure to set.

objGetDelegate

public final Object objGetDelegate()
Specified by:
objGetDelegate in interface Delegating_1_0

toString

public String toString()
Retrieve the object's string representation

Overrides:
toString in class Object
Returns:
a string representation of its delegate amended by the object's class name.

equals

public boolean equals(Object that)
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.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

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-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.