|
EPP 0.2.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.neulevel.epp.core.EppUtil
The EppUtil class implements some utility methods used
by various components in the EPP implementation.
| Field Summary | |
static java.lang.String |
xmlFullNamespace
Property for generating tags with namespace prefixes. |
| Constructor Summary | |
EppUtil()
|
|
| Method Summary | |
static org.apache.xerces.dom.ElementNSImpl |
createElementNS(org.w3c.dom.Document doc,
java.lang.String ns,
java.lang.String tag)
Creates an ElementNSImpl object inside a
Document object. |
static org.apache.xerces.dom.ElementNSImpl |
createElementNS(org.w3c.dom.Document doc,
java.lang.String ns,
java.lang.String tag,
boolean flag)
Creates an ElementNSImpl object inside a
Document object. |
static org.apache.xerces.dom.ElementNSImpl |
createElementNSUnspec(org.w3c.dom.Document doc,
java.lang.String unspec,
java.lang.String tag,
boolean flag)
Creates an ElementNSImpl object inside a
Document object. |
static org.w3c.dom.Text |
createTextNode(org.w3c.dom.Document doc,
java.util.Calendar cal)
Creates a Text node for converting a
Calendar object into a string of XML timeInstant type. |
static org.w3c.dom.Text |
createTextNode(org.w3c.dom.Document doc,
java.util.Calendar cal,
boolean dateOnly)
Creates a Text node for converting a
Calendar object into a string of XML timeInstant
type or XML date type. |
static java.util.Calendar |
getDate(org.w3c.dom.Node root)
Converts a text string associated with a node into a Calendar object |
static java.util.Calendar |
getDate(org.w3c.dom.Node root,
boolean dateOnly)
Converts a text string associated with a node into a Calendar object |
static java.lang.String |
getEppVersion()
Gets the EPP XSD file version. |
static java.lang.String |
getText(org.w3c.dom.Node root)
Gets the text string associated with a node |
static void |
setEppVersion(java.lang.String eppVersion)
Sets the EPP XSD file version. |
static java.lang.String |
toString(org.w3c.dom.Document doc)
Converts a Document into a formated XML string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String xmlFullNamespace
| Constructor Detail |
public EppUtil()
| Method Detail |
public static void setEppVersion(java.lang.String eppVersion)
public static java.lang.String getEppVersion()
public static org.apache.xerces.dom.ElementNSImpl createElementNS(org.w3c.dom.Document doc,
java.lang.String ns,
java.lang.String tag)
ElementNSImpl object inside a
Document object. The namespace associated with the
object is specific to EPP.
doc - Document object in which the new element
to be created.ns - The namespace of the new element to be created.tag - The tag name of the new element to be created.
ElementNSImpl object
public static org.apache.xerces.dom.ElementNSImpl createElementNS(org.w3c.dom.Document doc,
java.lang.String ns,
java.lang.String tag,
boolean flag)
ElementNSImpl object inside a
Document object. The namespace associated with the
object is specific to EPP.
doc - Document object in which the new element to be
created.ns - The namespace of the new element to be created.tag - The tag name of the new element to be created.flag - The flag indicating if the default namespace is needed.
ElementNSImpl object
public static org.apache.xerces.dom.ElementNSImpl createElementNSUnspec(org.w3c.dom.Document doc,
java.lang.String unspec,
java.lang.String tag,
boolean flag)
ElementNSImpl object inside a
Document object. The namespace associated with the
object is specific to an unspec object in an
EppServiceMenu object.
doc - Document object in which the new element to be
created.unspec - The string containing the information about the
unspec object with three tokens: name, uri, schema. For
example: "obj1ext http://custom/obj1ext-1.0 obj1ext-1.0.xsd"tag - The tag name of the new element to be created.flag - The flag indicating if the default namespace is needed.
ElementNSImpl object, or null if the
unspec parameter is not valid.
public static org.w3c.dom.Text createTextNode(org.w3c.dom.Document doc,
java.util.Calendar cal)
Text node for converting a
Calendar object into a string of XML timeInstant type.
doc - Document object in which the new element
to be
created.cal - The Calendar to be converted into a XML
Text node.
public static org.w3c.dom.Text createTextNode(org.w3c.dom.Document doc,
java.util.Calendar cal,
boolean dateOnly)
Text node for converting a
Calendar object into a string of XML timeInstant
type or XML date type.
doc - Document object in which the new element
to be created.cal - The Calendar to be converted into a XML
Text node.dateOnly - true if the format is XML date type, or false
if the format is XML timeInstant typepublic static java.lang.String getText(org.w3c.dom.Node root)
root - Node object from which text to be extracted.
public static java.util.Calendar getDate(org.w3c.dom.Node root)
Calendar object
root - Node object from which text to be extracted.
Calendar object, or null if the text string is
not a valid XML timeInstant string
public static java.util.Calendar getDate(org.w3c.dom.Node root,
boolean dateOnly)
Calendar object
root - Node object from which text to be extracted.dateOnly - true for parsing the string in XML date format, or
false for parsing the string in XML timeInstant
format
Calendar object, or null if the text string is
not a valid XML timeInstant/date stringpublic static java.lang.String toString(org.w3c.dom.Document doc)
Document into a formated XML string.
doc - Document to be converted into a string.
|
EPP 0.2.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||