au.gov.nehta.vendorlibrary.clinicalpackage.enums
Enum XMLNamespaces

java.lang.Object
  extended by java.lang.Enum<XMLNamespaces>
      extended by au.gov.nehta.vendorlibrary.clinicalpackage.enums.XMLNamespaces
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<XMLNamespaces>

public enum XMLNamespaces
extends java.lang.Enum<XMLNamespaces>

XML namespaces used in generating a package.


Enum Constant Summary
DS
          Digital signature namespace.
HL7
          HL7 default namespace.
 
Method Summary
static XMLNamespaces findByNamespace(java.lang.String namespace)
          Retrieves a XMLNamespaces based on a supplied namespace URI.
static XMLNamespaces findByPrefix(java.lang.String prefix)
          Retrieves a XMLNamespaces based on a supplied prefix.
 java.lang.String getNamespace()
          Retrieve namespace URI.
 java.lang.String getPrefix()
          Retrieve namespace prefix.
static XMLNamespaces valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static XMLNamespaces[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DS

public static final XMLNamespaces DS
Digital signature namespace.


HL7

public static final XMLNamespaces HL7
HL7 default namespace.

Method Detail

values

public static XMLNamespaces[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (XMLNamespaces c : XMLNamespaces.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static XMLNamespaces valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getPrefix

public java.lang.String getPrefix()
Retrieve namespace prefix.

Returns:
Prefix string.

getNamespace

public java.lang.String getNamespace()
Retrieve namespace URI.

Returns:
Namespace URI string.

findByPrefix

public static XMLNamespaces findByPrefix(java.lang.String prefix)
Retrieves a XMLNamespaces based on a supplied prefix.

Parameters:
prefix - Prefix to search for.
Returns:
Corresponding XMLNamespaces or null.

findByNamespace

public static XMLNamespaces findByNamespace(java.lang.String namespace)
Retrieves a XMLNamespaces based on a supplied namespace URI.

Parameters:
namespace - Namespace URI to search for.
Returns:
Corresponding XMLNamespaces or null.