com.centrasite.jaxr.exceptions
Class DanglingReferenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.xml.registry.JAXRException
              extended by com.centrasite.jaxr.exceptions.ImportValidationException
                  extended by com.centrasite.jaxr.exceptions.DanglingReferenceException
All Implemented Interfaces:
java.io.Serializable, javax.xml.registry.JAXRResponse

public class DanglingReferenceException
extends ImportValidationException

Exception used for reporting dangling references in an object to be imported.

See Also:
Serialized Form

Field Summary
static java.lang.String rcs_id
           
 
Fields inherited from class javax.xml.registry.JAXRException
cause
 
Fields inherited from interface javax.xml.registry.JAXRResponse
STATUS_FAILURE, STATUS_SUCCESS, STATUS_UNAVAILABLE, STATUS_WARNING
 
Constructor Summary
DanglingReferenceException(javax.xml.registry.infomodel.RegistryObject ro, java.lang.String reference, java.lang.String context)
          Construct a new DanglingReferenceException
 
Method Summary
 java.lang.String getContext()
          Return a String indicating the context of the reference to the non-existing object.
 java.lang.String getReference()
          Return the key that caused this problem.
 java.lang.String toString()
           
 
Methods inherited from class com.centrasite.jaxr.exceptions.ImportValidationException
getObject
 
Methods inherited from class javax.xml.registry.JAXRException
getCause, getMessage, getRequestId, getStatus, initCause, isAvailable
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rcs_id

public static final java.lang.String rcs_id
See Also:
Constant Field Values
Constructor Detail

DanglingReferenceException

public DanglingReferenceException(javax.xml.registry.infomodel.RegistryObject ro,
                                  java.lang.String reference,
                                  java.lang.String context)
Construct a new DanglingReferenceException

Parameters:
ro - the object that cannot be imported
reference - the key that cannot be resolved neither from the import set nor by existing objects
Method Detail

getReference

public java.lang.String getReference()
Return the key that caused this problem.

Returns:
the key that cannot be resolved neither from the import set nor by existing objects

getContext

public java.lang.String getContext()
Return a String indicating the context of the reference to the non-existing object. This usually is the element name of the reference as it appears in the XML representation.

Returns:
a String that indicated the context in the referencing object that refers to the non-existing object

toString

public java.lang.String toString()
Overrides:
toString in class ImportValidationException