|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.utility.xml.Xsd
public class Xsd
Singleton class wrapping functionality for XML schemas.
| Nested Class Summary | |
|---|---|
static class |
Xsd.AttributeNames
|
static class |
Xsd.AttributeValues
|
static class |
Xsd.Tags
|
| Field Summary | |
|---|---|
static java.lang.String |
FILE_EXTENSION
The standard extension for XML schema files. |
| Method Summary | |
|---|---|
static org.w3c.dom.Element |
appendAppInfoEntry(org.w3c.dom.Element element,
java.lang.String sourceTag,
java.lang.String sourceContent,
java.lang.String entryTag,
java.lang.String entryContent)
Append an appinfo entry. |
static org.w3c.dom.Element |
appendAppInfoImplementingClass(org.w3c.dom.Element element,
java.lang.Class<?> implementingClass)
Append appinfo element for the implementing class. |
static org.w3c.dom.Element |
appendDocumentation(org.w3c.dom.Element element,
java.lang.String content)
Append a documentation element. |
static org.w3c.dom.Element |
createAnnotationElement(org.w3c.dom.Element element)
Dereference an existing annotation element. |
static org.w3c.dom.Element |
createAppinfoElement(org.w3c.dom.Element element,
java.lang.String sourceTag,
java.lang.String sourceContent)
Dereference an existing appinfo element from an existing annotation element. |
static org.w3c.dom.Element |
createSchemaElement(org.w3c.dom.Document document,
java.lang.String targetNamespace)
Create a schema element at the apex of an XML document. |
static Xsd |
getSingleton()
Creates XSD singleton on first invocation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FILE_EXTENSION
| Method Detail |
|---|
public static Xsd getSingleton()
public static org.w3c.dom.Element createSchemaElement(org.w3c.dom.Document document,
java.lang.String targetNamespace)
document - The XML document node.targetNamespace - The target namespace.
public static org.w3c.dom.Element createAnnotationElement(org.w3c.dom.Element element)
element - The element to be annotated.
public static org.w3c.dom.Element createAppinfoElement(org.w3c.dom.Element element,
java.lang.String sourceTag,
java.lang.String sourceContent)
element - The element to be annotated.sourceTag - The attribute name for the appinfo source. No source is appended if this argument is null or blank.sourceContent - The attribute value for the appinfo source.
public static org.w3c.dom.Element appendDocumentation(org.w3c.dom.Element element,
java.lang.String content)
createAnnotationElement(Element) is used to create/dereference an
annotation element, to which the new documentation element is appended.
element - The element which is to receive the documentation elementcontent - The text content of the new documentation element.
public static org.w3c.dom.Element appendAppInfoEntry(org.w3c.dom.Element element,
java.lang.String sourceTag,
java.lang.String sourceContent,
java.lang.String entryTag,
java.lang.String entryContent)
createAppinfoElement(Element, String, String) is used to create/dereference an
appinfo element, to which the new appinfo entry is appended.
element - The element which is to receive the documentation elementsourceTag - The XML tag of the appinfo source attribute.sourceContent - The content of the appinfo source attribute.entryTag - The XML tag of the new appinfo entry.entryContent - The text content of the new appinfo entry.
public static org.w3c.dom.Element appendAppInfoImplementingClass(org.w3c.dom.Element element,
java.lang.Class<?> implementingClass)
element - implementingClass -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||