org.openmdx.base.accessor.jmi.spi
Class RefStruct_1

java.lang.Object
  extended by org.openmdx.base.accessor.jmi.spi.RefStruct_1
All Implemented Interfaces:
Serializable, RefStruct, RefStruct_1_0
Direct Known Subclasses:
ClassifierExternalizeClassifierParamsImpl, ClassifierExternalizeResultImpl, GetStreamResultImpl, NamespaceFindElementsByTypeParamsImpl, NamespaceFindElementsByTypeResultImpl, NamespaceLookupElementParamsImpl, NamespaceLookupElementResultImpl, NamespaceResolveQualifiedNameParamsImpl, NamespaceResolveQualifiedNameResultImpl, PackageExternalizeParamsImpl, PackageExternalizeResultImpl, VoidImpl

public abstract class RefStruct_1
extends Object
implements RefStruct_1_0, Serializable

Implementatinon of RefPackage_1_0 interface. This implementation supports leightweight serialization, i.e. it contains only one member which is refImmediatePackage.

See Also:
Serialized Form

Constructor Summary
RefStruct_1(RefPackage_1_0 refPackage, Object value)
           
RefStruct_1(RefPackage_1_0 refPackage, RefStruct_1_0 refStruct)
           
RefStruct_1(RefPackage_1_0 refPackage, Structure_1_0 struct)
           
RefStruct_1(String typeName, RefPackage_1_0 refPackage, List values)
           
 
Method Summary
 boolean equals(Object that)
           
 boolean refContainsValue(String fieldName, Object value)
          Verifies whether the multi-valued feature contains the specified value.
 Structure_1_0 refDelegate()
           
 List refFieldNames()
           
 Object refGetValue(RefObject field)
           
 Object refGetValue(String fieldName)
          The returned value is retrieved and returned from the delegate without checking the type against the model assuming that the delegate is in a consistent state.
 Object refGetValue(String fieldName, int index)
           
protected  String refQualifiedTypeName()
           
 List refTypeName()
          For openMDX 2 JMI mapping
protected  Object toPath(Object source)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jmi.reflect.RefStruct
hashCode
 

Constructor Detail

RefStruct_1

public RefStruct_1(RefPackage_1_0 refPackage,
                   Structure_1_0 struct)

RefStruct_1

public RefStruct_1(RefPackage_1_0 refPackage,
                   RefStruct_1_0 refStruct)

RefStruct_1

public RefStruct_1(String typeName,
                   RefPackage_1_0 refPackage,
                   List values)

RefStruct_1

public RefStruct_1(RefPackage_1_0 refPackage,
                   Object value)
Method Detail

refQualifiedTypeName

protected String refQualifiedTypeName()

refDelegate

public Structure_1_0 refDelegate()
Specified by:
refDelegate in interface RefStruct_1_0

refContainsValue

public boolean refContainsValue(String fieldName,
                                Object value)
Description copied from interface: RefStruct_1_0
Verifies whether the multi-valued feature contains the specified value.

Specified by:
refContainsValue in interface RefStruct_1_0
Returns:
true if the value is contained in the set of values of the specified feature.

refGetValue

public Object refGetValue(String fieldName)
The returned value is retrieved and returned from the delegate without checking the type against the model assuming that the delegate is in a consistent state.

Specified by:
refGetValue in interface RefStruct

refGetValue

public Object refGetValue(String fieldName,
                          int index)
Specified by:
refGetValue in interface RefStruct_1_0

refGetValue

public Object refGetValue(RefObject field)

refTypeName

public List refTypeName()
For openMDX 2 JMI mapping

Specified by:
refTypeName in interface RefStruct

equals

public boolean equals(Object that)
Specified by:
equals in interface RefStruct
Overrides:
equals in class Object

refFieldNames

public List refFieldNames()
Specified by:
refFieldNames in interface RefStruct

toPath

protected Object toPath(Object source)


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