|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.eclipse.cosmos.rm.validation.internal.databuilders.AbstractDataBuilder
org.eclipse.cosmos.rm.validation.internal.databuilders.DocumentDOMBuilder
public class DocumentDOMBuilder
This class will build a map containing all instance documents in a DOM format. The documents will be identified by the document alias
| Field Summary | |
|---|---|
static java.lang.String |
ID
The ID of this builder |
static java.lang.String |
NO_ALIAS
The key used for documents that don't have aliases |
| Fields inherited from class org.eclipse.cosmos.rm.validation.internal.databuilders.AbstractDataBuilder |
|---|
locator |
| Constructor Summary | |
|---|---|
DocumentDOMBuilder()
|
|
| Method Summary | |
|---|---|
void |
characters(char[] characters,
int start,
int length)
|
void |
comment(char[] characters,
int start,
int length)
Create a comment DOM node |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
java.lang.Object |
getDataStructure()
Returns the data structure. |
ElementLocation |
getLocation(org.w3c.dom.Element element)
|
byte |
getPhase()
Specifies the phase that this data builder is active during parsing. |
void |
setLocation(org.w3c.dom.Element element,
ElementLocation location)
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
This is used to determine the target name space of the document currently being parsed |
| Methods inherited from class org.eclipse.cosmos.rm.validation.internal.databuilders.AbstractDataBuilder |
|---|
appendToErrorMessage, endDefinitions, endInstances, getCurrentPhase, getDefaultNamespace, getErrorMessage, getFilePath, getPrefixMap, getTargetNamespace, isStructureValid, setDefaultNamespace, setDocumentLocator, setErrorMessage, setFilePath, setPrefixMap, setStructureValidity, setTargetNamespace, startDefinitions, startInstances, tokenizeName |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity, startDocument, startPrefixMapping |
| Field Detail |
|---|
public static final java.lang.String ID
public static final java.lang.String NO_ALIAS
| Constructor Detail |
|---|
public DocumentDOMBuilder()
| Method Detail |
|---|
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
AbstractDataBuilder
startElement in interface org.xml.sax.ContentHandlerstartElement in class AbstractDataBuilderAbstractDataBuilder.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
endElement in interface org.xml.sax.ContentHandlerendElement in class AbstractDataBuilderAbstractDataBuilder.endElement(java.lang.String, java.lang.String, java.lang.String)
public void characters(char[] characters,
int start,
int length)
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerDefaultHandler.characters(char[], int, int)
public void comment(char[] characters,
int start,
int length)
comment in class AbstractDataBuilderpublic java.lang.Object getDataStructure()
IDataBuilder
IDataBuilder.getDataStructure()public byte getPhase()
IDataBuilderISMLConstants.DEFINITIONS_PHASE -databuilder is active during the parsing of the definitions elements ISMLConstants.INSTANCES_PHASE -databuilder is active during the parsing of the instances elements ISMLConstants.DEFINITIONS_INSTANCES_PHASE - databuilder is active during the parsing of the definitions and instances elements
getPhase in interface IDataBuildergetPhase in class AbstractDataBuilderAbstractDataBuilder.getPhase()public ElementLocation getLocation(org.w3c.dom.Element element)
public void setLocation(org.w3c.dom.Element element,
ElementLocation location)
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||