|
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.TypeInheritanceDataBuilderImpl
public class TypeInheritanceDataBuilderImpl
Used to build an inheritance map that will indicate the relationships between the reference types.
| Field Summary | |
|---|---|
static java.lang.String |
ID
The static ID of this builder |
| Fields inherited from class org.eclipse.cosmos.rm.validation.internal.databuilders.AbstractDataBuilder |
|---|
locator |
| Constructor Summary | |
|---|---|
TypeInheritanceDataBuilderImpl()
Constructor |
|
| Method Summary | |
|---|---|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
java.lang.Object |
getDataStructure()
The data structure is a Map, where
KEY = An object of type String indicating a reference
VALUE = An object of type String indicating the immediate parent of KEY |
byte |
getPhase()
Specifies the phase that this data builder is active during parsing. |
static boolean |
isDerivedType(java.util.Map inheritanceMap,
TypeNode refType,
TypeNode refTypeInQuestion)
Based on the inheritance map passed in, this method will return true if and only if refTypeInQuestion is a derived type of refType. |
static TypeNode |
retrieveType(java.util.Map inheritance,
java.lang.String uri,
java.lang.String localName)
|
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, comment, 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 |
|---|
characters, 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.eclipse.cosmos.rm.validation.internal.databuilders.IDataBuilder |
|---|
endDefinitions, endInstances, getErrorMessage, getFilePath, isStructureValid, setErrorMessage, setFilePath, setStructureValidity, startDefinitions, startInstances |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping |
| Field Detail |
|---|
public static final java.lang.String ID
| Constructor Detail |
|---|
public TypeInheritanceDataBuilderImpl()
| Method Detail |
|---|
public java.lang.Object getDataStructure()
Map, where
KEY = An object of type String indicating a reference
VALUE = An object of type String indicating the immediate parent of KEY
getDataStructure in interface IDataBuilderIDataBuilder.getDataStructure()
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
AbstractDataBuilder
startElement in interface org.xml.sax.ContentHandlerstartElement in class AbstractDataBuilderorg.xml.sax.SAXExceptionDefaultHandler.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)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class AbstractDataBuilderorg.xml.sax.SAXExceptionDefaultHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public static boolean isDerivedType(java.util.Map inheritanceMap,
TypeNode refType,
TypeNode refTypeInQuestion)
inheritanceMap - The inheritance maprefType - A primary ref typerefTypeInQuestion - The reference type in question
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 static TypeNode retrieveType(java.util.Map inheritance,
java.lang.String uri,
java.lang.String localName)
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||