|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.simonstl.moe.factory.ComponentQFactory
The ComponentQFactory class provides a relatively simple mechanism for creating new MOE components, using namespace URI and QName instead of of namspace URI, local name, prefix. I genuinely detest the use of QNames in many contexts, but seem folks seem to prefer them.
The ComponentQFactory class uses the same System properties as ComponentFactory
- it's just a wrapper around ComponentFactory.
Constructor Summary | |
ComponentQFactory()
|
Method Summary | |
static CoreComponentI |
attribute(java.lang.String _nsURI,
java.lang.String _QName)
Creates an empty attribute with a namespace URI, local name, and prefix. |
static CoreComponentI |
attribute(java.lang.String _nsURI,
java.lang.String _QName,
java.lang.String _text)
Creates an attribute with a namespace URI, local name, prefix, and a text node. |
static CoreComponentI |
attribute(java.lang.String _nsURI,
java.lang.String _QName,
java.lang.String _text,
boolean _complete)
Creates an attribute with a namespace URI, local name, prefix, and a text node, and allows the caller to specify whether or not the element is complete. |
static java.lang.String[] |
breakQName(java.lang.String QName)
Divides a QName into two pieces. |
static CoreComponentI |
cdataSect()
Creates an incomplete CDATA section with no textual content. |
static CoreComponentI |
cdataSect(java.lang.String _text)
Creates a complete CDATA section with textual content. |
static CoreComponentI |
cdataSect(java.lang.String _text,
boolean _complete)
Creates a CDATA section with textual content, allowing the code to specify whether or not it is complete. |
static CoreComponentI |
characters(java.lang.String _text)
Creates a text node with textual content. |
static CoreComponentI |
comment(java.lang.String _text)
Creates a complete Comment with textual content. |
static CoreComponentI |
comment(java.lang.String _text,
boolean _complete)
Creates a comment with textual content, allowing the code to specify whether or not it is complete. |
static CoreComponentI |
element(java.lang.String _nsURI,
java.lang.String _QName)
Creates an empty element with a namespace URI, local name, and prefix. |
static CoreComponentI |
element(java.lang.String _nsURI,
java.lang.String _QName,
java.lang.String _text)
Creates a complete element with a namespace URI, local name, prefix, and a text node. |
static CoreComponentI |
element(java.lang.String _nsURI,
java.lang.String _QName,
java.lang.String _text,
boolean _complete)
Creates an element with a namespace URI, local name, prefix, and a text node, and allows the caller to specify whether or not the element is complete. |
static CoreComponentI |
endAttribute(java.lang.String _nsURI,
java.lang.String _QName)
Creates an empty attribute with a namespace URI, local name, and prefix. |
static CoreComponentI |
endCdataSect()
Creates an end to a CDATA section. |
static CoreComponentI |
endComment()
|
static CoreComponentI |
endElement(java.lang.String _nsURI,
java.lang.String _QName)
Creates an end element with a namespace URI, local name, and prefix. |
static CoreComponentI |
endNamespace(java.lang.String _nsURI,
java.lang.String _prefix)
Creates an end to a namespace. |
static CoreComponentI |
endProcInst()
|
static void |
main(java.lang.String[] args)
|
static CoreComponentI |
namespace(java.lang.String _nsURI)
Creates a default. |
static CoreComponentI |
namespace(java.lang.String _nsURI,
java.lang.String _prefix)
Creates a namespace. |
CoreComponentI |
procInst(java.lang.String _target,
java.lang.String _text)
Creates a complete Processing Instruction with target and textual content. |
CoreComponentI |
procInst(java.lang.String _target,
java.lang.String _text,
boolean _complete)
Creates a Processing Instruction with target and textual content, allowing the code to specify whether or not it is complete. |
static CoreComponentI |
whitespace(java.lang.String _text)
Creates a whitespace node with content. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComponentQFactory()
Method Detail |
public static java.lang.String[] breakQName(java.lang.String QName)
public static CoreComponentI element(java.lang.String _nsURI, java.lang.String _QName) throws MOEException
public static CoreComponentI element(java.lang.String _nsURI, java.lang.String _QName, java.lang.String _text) throws MOEException
public static CoreComponentI element(java.lang.String _nsURI, java.lang.String _QName, java.lang.String _text, boolean _complete) throws MOEException
public static CoreComponentI attribute(java.lang.String _nsURI, java.lang.String _QName) throws MOEException
public static CoreComponentI attribute(java.lang.String _nsURI, java.lang.String _QName, java.lang.String _text) throws MOEException
public static CoreComponentI attribute(java.lang.String _nsURI, java.lang.String _QName, java.lang.String _text, boolean _complete) throws MOEException
public static CoreComponentI characters(java.lang.String _text) throws MOEException
public CoreComponentI procInst(java.lang.String _target, java.lang.String _text) throws MOEException
public CoreComponentI procInst(java.lang.String _target, java.lang.String _text, boolean _complete) throws MOEException
public static CoreComponentI comment(java.lang.String _text) throws MOEException
public static CoreComponentI comment(java.lang.String _text, boolean _complete) throws MOEException
public static CoreComponentI cdataSect() throws MOEException
public static CoreComponentI cdataSect(java.lang.String _text) throws MOEException
public static CoreComponentI cdataSect(java.lang.String _text, boolean _complete) throws MOEException
public static CoreComponentI whitespace(java.lang.String _text) throws MOEException
public static CoreComponentI namespace(java.lang.String _nsURI, java.lang.String _prefix) throws MOEException
public static CoreComponentI namespace(java.lang.String _nsURI) throws MOEException
public static CoreComponentI endElement(java.lang.String _nsURI, java.lang.String _QName) throws MOEException
public static CoreComponentI endAttribute(java.lang.String _nsURI, java.lang.String _QName) throws MOEException
public static CoreComponentI endNamespace(java.lang.String _nsURI, java.lang.String _prefix) throws MOEException
public static CoreComponentI endCdataSect() throws MOEException
public static CoreComponentI endProcInst() throws MOEException
public static CoreComponentI endComment() throws MOEException
public static void main(java.lang.String[] args) throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |