Package org.exolab.castor.xml
Class ReferenceInfo
- java.lang.Object
-
- org.exolab.castor.xml.ReferenceInfo
-
class ReferenceInfo extends java.lang.ObjectInternal class used to save state for reference resolution.- Version:
- $Revision: 0000 $ $Date:$
- Author:
- Werner Guttmann
-
-
Constructor Summary
Constructors Constructor Description ReferenceInfo(java.lang.String id, java.lang.Object target, XMLFieldDescriptor descriptor)Creates a newReferenceInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldDescriptorgetDescriptor()Returns the field descriptor referenced by this IDREF instance.java.lang.StringgetId()Returns the ID value of the target object instance.ReferenceInfogetNext()Returns the next 'ReferenceInfo' instance.java.lang.ObjectgetTarget()Returns the target object referenced by this IDREF instance.voidsetNext(ReferenceInfo info)Sets a reference to the 'next' ReferenceInfo instance.
-
-
-
Constructor Detail
-
ReferenceInfo
public ReferenceInfo(java.lang.String id, java.lang.Object target, XMLFieldDescriptor descriptor)Creates a newReferenceInfo.- Parameters:
id- The identity of this XML ID reference instance.target- The target object referenced by this IDREF instance.descriptor- TheXMLFieldDescriptorfor the target object.
-
-
Method Detail
-
setNext
public void setNext(ReferenceInfo info)
Sets a reference to the 'next' ReferenceInfo instance.- Parameters:
info- The 'next' ReferenceInfo instance.
-
getDescriptor
public FieldDescriptor getDescriptor()
Returns the field descriptor referenced by this IDREF instance.- Returns:
- the field descriptor referenced by this IDREF instance.
-
getTarget
public java.lang.Object getTarget()
Returns the target object referenced by this IDREF instance.- Returns:
- the target object referenced by this IDREF instance.
-
getNext
public ReferenceInfo getNext()
Returns the next 'ReferenceInfo' instance.- Returns:
- the next 'ReferenceInfo' instance.
-
getId
public java.lang.String getId()
Returns the ID value of the target object instance.- Returns:
- the ID value of the target object instance.
-
-