org.globus.ogsa.impl.base.servicegroup.common
Class EntryUtil

java.lang.Object
  extended byorg.globus.ogsa.impl.base.servicegroup.common.EntryUtil

public class EntryUtil
extends java.lang.Object

Entry utility class.


Field Summary
static java.lang.String CONTENT_ELEMENT_NAME
           
static java.lang.String DOCUMENT_ID_ELEMENT_NAME
           
static java.lang.String ENTRY_SERVICE_DATA_DOCUMENT_CHILD_ELEMENT_NAME
           
static java.lang.String ENTRY_SERVICE_DATA_DOCUMENT_ROOT_ELEMENT_NAME
           
static java.lang.String ENTRY_TYPE_ELEMENT_NAME
           
static java.lang.String MEMBER_SERVICE_HANDLE_ELEMENT_NAME
           
static java.lang.String MEMBER_SERVICE_LOCATOR_ELEMENT_NAME
           
static java.lang.String OGSI_NAMESPACE_PREFIX
           
static java.lang.String OGSI_NAMESPACE_URI
           
static java.lang.String SERVICE_GROUP_ENTRY_DOCUMENT_ELEMENT_NAME
           
static java.lang.String SERVICE_GROUP_ENTRY_ELEMENT_NAME
           
static java.lang.String SERVICE_GROUP_ENTRY_HANDLE_ELEMENT_NAME
           
static java.lang.String SERVICE_GROUP_ENTRY_LOCATOR_ELEMENT_NAME
           
 
Constructor Summary
EntryUtil()
           
 
Method Summary
static org.w3c.dom.Document createEntryDocument()
          Creates an Entry Docuement.
static org.w3c.dom.Document createEntryDocumentWithNameSpace()
          Creates an Entry Document with Namespace
static org.w3c.dom.Element createEntryElementWithNameSpace(HandleType serviceGroupEntryHandle, HandleType memberServiceHandle, java.lang.String docID)
          Creates a Service Group Entry Element with Namespace
static org.w3c.dom.Element createEntryTypeElement(java.lang.String entryServiceHandle, java.lang.String memberServiceHandle, org.w3c.dom.Document contentDocument)
          Creates a Service Group Entry Type Element
static org.w3c.dom.Document createServiceGroupEntryDocumentWithNameSpace(LocatorType memberServiceLocator, java.lang.String docID)
          Creates a Service Group Entry Document with namespace.
static org.w3c.dom.Node getOGSINamespaceNode()
          Gets the OGSI Namespaces as a Node
static java.util.HashMap getOGSINameSpaces()
          Creates a HashMap containing the OGSI namespaces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OGSI_NAMESPACE_URI

public static final java.lang.String OGSI_NAMESPACE_URI
See Also:
Constant Field Values

OGSI_NAMESPACE_PREFIX

public static final java.lang.String OGSI_NAMESPACE_PREFIX
See Also:
Constant Field Values

SERVICE_GROUP_ENTRY_DOCUMENT_ELEMENT_NAME

public static final java.lang.String SERVICE_GROUP_ENTRY_DOCUMENT_ELEMENT_NAME
See Also:
Constant Field Values

SERVICE_GROUP_ENTRY_ELEMENT_NAME

public static final java.lang.String SERVICE_GROUP_ENTRY_ELEMENT_NAME
See Also:
Constant Field Values

SERVICE_GROUP_ENTRY_HANDLE_ELEMENT_NAME

public static final java.lang.String SERVICE_GROUP_ENTRY_HANDLE_ELEMENT_NAME
See Also:
Constant Field Values

MEMBER_SERVICE_HANDLE_ELEMENT_NAME

public static final java.lang.String MEMBER_SERVICE_HANDLE_ELEMENT_NAME
See Also:
Constant Field Values

DOCUMENT_ID_ELEMENT_NAME

public static final java.lang.String DOCUMENT_ID_ELEMENT_NAME
See Also:
Constant Field Values

ENTRY_SERVICE_DATA_DOCUMENT_ROOT_ELEMENT_NAME

public static final java.lang.String ENTRY_SERVICE_DATA_DOCUMENT_ROOT_ELEMENT_NAME
See Also:
Constant Field Values

ENTRY_SERVICE_DATA_DOCUMENT_CHILD_ELEMENT_NAME

public static final java.lang.String ENTRY_SERVICE_DATA_DOCUMENT_CHILD_ELEMENT_NAME
See Also:
Constant Field Values

ENTRY_TYPE_ELEMENT_NAME

public static final java.lang.String ENTRY_TYPE_ELEMENT_NAME
See Also:
Constant Field Values

SERVICE_GROUP_ENTRY_LOCATOR_ELEMENT_NAME

public static final java.lang.String SERVICE_GROUP_ENTRY_LOCATOR_ELEMENT_NAME
See Also:
Constant Field Values

MEMBER_SERVICE_LOCATOR_ELEMENT_NAME

public static final java.lang.String MEMBER_SERVICE_LOCATOR_ELEMENT_NAME
See Also:
Constant Field Values

CONTENT_ELEMENT_NAME

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

EntryUtil

public EntryUtil()
Method Detail

createEntryDocument

public static org.w3c.dom.Document createEntryDocument()
Creates an Entry Docuement.

Returns:
DOM representation of a Service Group Entry.

createEntryDocumentWithNameSpace

public static org.w3c.dom.Document createEntryDocumentWithNameSpace()
Creates an Entry Document with Namespace

Returns:
DOM representation of Service Group Entry with namespace.

getOGSINameSpaces

public static java.util.HashMap getOGSINameSpaces()
Creates a HashMap containing the OGSI namespaces.

Returns:
the OGSI namespaces HashMap

getOGSINamespaceNode

public static org.w3c.dom.Node getOGSINamespaceNode()
Gets the OGSI Namespaces as a Node

Returns:
the OGSI namespaces Node

createEntryElementWithNameSpace

public static org.w3c.dom.Element createEntryElementWithNameSpace(HandleType serviceGroupEntryHandle,
                                                                  HandleType memberServiceHandle,
                                                                  java.lang.String docID)
Creates a Service Group Entry Element with Namespace

Parameters:
serviceGroupEntryHandle - - the serviceGroupEntryHandle
memberServiceHandle - - the memberServiceHandle
docID - - Xindice document id.
Returns:
the Service Group Entry represented as an Element

createServiceGroupEntryDocumentWithNameSpace

public static org.w3c.dom.Document createServiceGroupEntryDocumentWithNameSpace(LocatorType memberServiceLocator,
                                                                                java.lang.String docID)
                                                                         throws GridServiceException
Creates a Service Group Entry Document with namespace.

Parameters:
memberServiceLocator - - the memberServiceLocator
docID - - the Xindice document id
Returns:
DOM representation of the Service Group Entry
Throws:
GridServiceException

createEntryTypeElement

public static org.w3c.dom.Element createEntryTypeElement(java.lang.String entryServiceHandle,
                                                         java.lang.String memberServiceHandle,
                                                         org.w3c.dom.Document contentDocument)
                                                  throws java.lang.Exception
Creates a Service Group Entry Type Element

Parameters:
entryServiceHandle - - the serviceGroupEntryHandle
memberServiceHandle - - the memberServiceHandle
contentDocument - - the content Document
Returns:
the Service Group Entry Type represented as an Element
Throws:
java.lang.Exception