org.oasis.ebxml.registry.bindings.rs
Class RegistryResponseChoice

java.lang.Object
  extended byorg.oasis.ebxml.registry.bindings.rs.RegistryResponseChoice
All Implemented Interfaces:
java.io.Serializable

public class RegistryResponseChoice
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
RegistryResponseChoice()
           
 
Method Summary
 AdhocQueryResponse getAdhocQueryResponse()
          Returns the value of field 'adhocQueryResponse'.
 GetContentResponse getGetContentResponse()
          Returns the value of field 'getContentResponse'.
 boolean isValid()
           
 void marshal(org.xml.sax.DocumentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setAdhocQueryResponse(AdhocQueryResponse adhocQueryResponse)
          Sets the value of field 'adhocQueryResponse'.
 void setGetContentResponse(GetContentResponse getContentResponse)
          Sets the value of field 'getContentResponse'.
static RegistryResponseChoice unmarshal(java.io.Reader reader)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryResponseChoice

public RegistryResponseChoice()
Method Detail

getAdhocQueryResponse

public AdhocQueryResponse getAdhocQueryResponse()
Returns the value of field 'adhocQueryResponse'. The field 'adhocQueryResponse' has the following description: The response includes a RegistryObjectList which has zero or more RegistryObjects that match the query specified in AdhocQueryRequest.

Returns:
the value of field 'adhocQueryResponse'.

getGetContentResponse

public GetContentResponse getGetContentResponse()
Returns the value of field 'getContentResponse'. The field 'getContentResponse' has the following description: The GetContentResponse will have no sub-elements if there were no errors. The actual contents will be in the other payloads of the message.

Returns:
the value of field 'getContentResponse'.

isValid

public boolean isValid()

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.DocumentHandler handler)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

setAdhocQueryResponse

public void setAdhocQueryResponse(AdhocQueryResponse adhocQueryResponse)
Sets the value of field 'adhocQueryResponse'. The field 'adhocQueryResponse' has the following description: The response includes a RegistryObjectList which has zero or more RegistryObjects that match the query specified in AdhocQueryRequest.

Parameters:
adhocQueryResponse - the value of field 'adhocQueryResponse'.

setGetContentResponse

public void setGetContentResponse(GetContentResponse getContentResponse)
Sets the value of field 'getContentResponse'. The field 'getContentResponse' has the following description: The GetContentResponse will have no sub-elements if there were no errors. The actual contents will be in the other payloads of the message.

Parameters:
getContentResponse - the value of field 'getContentResponse'.

unmarshal

public static RegistryResponseChoice unmarshal(java.io.Reader reader)
                                        throws org.exolab.castor.xml.MarshalException,
                                               org.exolab.castor.xml.ValidationException
Parameters:
reader -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException