au.gov.nehta.vendorlibrary.pcehr.clients.common.util
Class XDSFactory

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.pcehr.clients.common.util.XDSFactory

public final class XDSFactory
extends java.lang.Object

A factory class for creating instances of XDS objects.


Method Summary
static oasis.names.tc.ebxml_regrep.xsd.rim._3.ClassificationType createClassification(java.lang.String classificationScheme, java.lang.String classifiedObject, java.lang.String nodeRepresentation, int idNum)
          Create an instance of a ClassificationType object.
static oasis.names.tc.ebxml_regrep.xsd.rim._3.ExternalIdentifierType createExternalIdentifier(java.lang.String identificationScheme, java.lang.String registryObject, java.lang.String name, java.lang.String value, int idNum)
          Create an instance of an ExternalIdentifierType object.
static oasis.names.tc.ebxml_regrep.xsd.rim._3.InternationalStringType createInternationalString(java.lang.String value)
          Create an InternationalStringType.
static oasis.names.tc.ebxml_regrep.xsd.rim._3.Slot createQuerySlot(java.lang.String slotName, java.util.Collection<java.lang.String> values)
          Create a Slot to be used in an ad-hoc query that contains one or more values using the 'OR' semantics.
static oasis.names.tc.ebxml_regrep.xsd.rim._3.Slot createQuerySlot(java.lang.String slotName, java.lang.String... values)
          Create a Slot to be used in an ad-hoc query that contains one or more values using the 'OR' semantics.
static java.util.List<oasis.names.tc.ebxml_regrep.xsd.rim._3.Slot> createQuerySlots(java.lang.String slotName, CodedValue... values)
          Create Slots to be used in an ad-hoc query that contains one or more values using the 'OR' semantics.
static java.util.List<oasis.names.tc.ebxml_regrep.xsd.rim._3.Slot> createQuerySlots(java.lang.String slotName, java.util.Collection<CodedValue> values)
          Create Slots to be used in an ad-hoc query that contains one or more values using the 'OR' semantics.
static oasis.names.tc.ebxml_regrep.xsd.rim._3.Slot createSingleValuedSlot(java.lang.String slotName, java.lang.String... values)
          Create a Slot containing one or more String values, stored in a single valued fashion.
static oasis.names.tc.ebxml_regrep.xsd.rim._3.Slot createSlot(java.lang.String slotName, java.lang.String... values)
          Create a Slot containing one or more String values, stored in a multivalued fashion.
static java.lang.String toAssociationIdentifierString(int idNum)
           
static java.lang.String toClassificationIdString(int idNum)
          Format id number as string.
static java.lang.String toExternalIdentifierIdString(int idNum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSlot

public static oasis.names.tc.ebxml_regrep.xsd.rim._3.Slot createSlot(java.lang.String slotName,
                                                                     java.lang.String... values)
Create a Slot containing one or more String values, stored in a multivalued fashion.

Parameters:
slotName - Name of the slot.
values - One or more String values.
Returns:
An instance of a Slot.

createSingleValuedSlot

public static oasis.names.tc.ebxml_regrep.xsd.rim._3.Slot createSingleValuedSlot(java.lang.String slotName,
                                                                                 java.lang.String... values)
Create a Slot containing one or more String values, stored in a single valued fashion.

Parameters:
slotName - Name of the slot.
values - One or more String values.
Returns:
An instance of a Slot.

createQuerySlot

public static oasis.names.tc.ebxml_regrep.xsd.rim._3.Slot createQuerySlot(java.lang.String slotName,
                                                                          java.lang.String... values)
Create a Slot to be used in an ad-hoc query that contains one or more values using the 'OR' semantics.

Parameters:
slotName - Name of the slot.
values - One or more String values.
Returns:
An instance of a Slot.

createQuerySlots

public static java.util.List<oasis.names.tc.ebxml_regrep.xsd.rim._3.Slot> createQuerySlots(java.lang.String slotName,
                                                                                           CodedValue... values)
Create Slots to be used in an ad-hoc query that contains one or more values using the 'OR' semantics.

Parameters:
slotName - Name of the slot.
values - One or more CodedValue values.
Returns:
A list of zero or two Slots.

createQuerySlot

public static oasis.names.tc.ebxml_regrep.xsd.rim._3.Slot createQuerySlot(java.lang.String slotName,
                                                                          java.util.Collection<java.lang.String> values)
Create a Slot to be used in an ad-hoc query that contains one or more values using the 'OR' semantics.

Parameters:
slotName - Name of the slot.
values - One or more String values.
Returns:
An instance of a Slot.

createQuerySlots

public static java.util.List<oasis.names.tc.ebxml_regrep.xsd.rim._3.Slot> createQuerySlots(java.lang.String slotName,
                                                                                           java.util.Collection<CodedValue> values)
Create Slots to be used in an ad-hoc query that contains one or more values using the 'OR' semantics.

Parameters:
slotName - Name of the slot.
values - One or more CodedValue values.
Returns:
An instance of a Slot.

createInternationalString

public static oasis.names.tc.ebxml_regrep.xsd.rim._3.InternationalStringType createInternationalString(java.lang.String value)
Create an InternationalStringType.

Parameters:
value - String value
Returns:
An instance of an InternationalStringType.

createClassification

public static oasis.names.tc.ebxml_regrep.xsd.rim._3.ClassificationType createClassification(java.lang.String classificationScheme,
                                                                                             java.lang.String classifiedObject,
                                                                                             java.lang.String nodeRepresentation,
                                                                                             int idNum)
Create an instance of a ClassificationType object.

Parameters:
classificationScheme - classification scheme.
classifiedObject - classified object.
nodeRepresentation - node representation.
idNum - id number.
Returns:
An instance of a ClassificationType object.

createExternalIdentifier

public static oasis.names.tc.ebxml_regrep.xsd.rim._3.ExternalIdentifierType createExternalIdentifier(java.lang.String identificationScheme,
                                                                                                     java.lang.String registryObject,
                                                                                                     java.lang.String name,
                                                                                                     java.lang.String value,
                                                                                                     int idNum)
Create an instance of an ExternalIdentifierType object.

Parameters:
identificationScheme - identification scheme.
registryObject - registry object.
name - name.
value - value.
idNum - id number.
Returns:
An instance of an ExternalIdentifierType object.

toClassificationIdString

public static java.lang.String toClassificationIdString(int idNum)
Format id number as string.

Parameters:
idNum - id number to format.
Returns:
formatted string.

toExternalIdentifierIdString

public static java.lang.String toExternalIdentifierIdString(int idNum)

toAssociationIdentifierString

public static java.lang.String toAssociationIdentifierString(int idNum)