com.sun.xml.registry.client.util
Class RegistryObjectUtil

java.lang.Object
  extended bycom.sun.xml.registry.client.util.RegistryObjectUtil

public class RegistryObjectUtil
extends java.lang.Object


Constructor Summary
RegistryObjectUtil()
           
 
Method Summary
static void checkBulkResponse(javax.xml.registry.BulkResponse response)
          Throws exception if BulkResponse contains any exceptions.
static java.lang.Object getFirstObject(java.util.Collection col)
          Retrieves first object from a Collection.
static javax.xml.registry.infomodel.User getOwner(javax.xml.registry.infomodel.RegistryObject ro)
          Retrieves owner of RegistryObject.
static java.lang.String toId(java.lang.Object obj)
          Retrieves id from RegistryObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryObjectUtil

public RegistryObjectUtil()
Method Detail

toId

public static java.lang.String toId(java.lang.Object obj)
                             throws javax.xml.registry.JAXRException
Retrieves id from RegistryObject.

Parameters:
obj -
Returns:
Throws:
javax.xml.registry.JAXRException

getFirstObject

public static java.lang.Object getFirstObject(java.util.Collection col)
Retrieves first object from a Collection.

Parameters:
col -
Returns:

checkBulkResponse

public static void checkBulkResponse(javax.xml.registry.BulkResponse response)
                              throws javax.xml.registry.JAXRException
Throws exception if BulkResponse contains any exceptions.

Parameters:
response -
Throws:
javax.xml.registry.JAXRException

getOwner

public static javax.xml.registry.infomodel.User getOwner(javax.xml.registry.infomodel.RegistryObject ro)
                                                  throws javax.xml.registry.JAXRException
Retrieves owner of RegistryObject.

Parameters:
ro - RegistryObject to get the owner of
Returns:
owner, ie. creator or null if this is a new RegistryObject
Throws:
javax.xml.registry.JAXRException


Copyright © 2001-2004 OASIS. All Rights Reserved.