|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IDataBuilder
This interface is used to represent a data builder which will construct a data structure while an SML document is being parsed.
| Method Summary | |
|---|---|
void |
endDefinitions()
This method will be called when the parser ends parsing the definitions part of the document |
void |
endInstances()
This method will be called when the parser ends parsing the instances part of the document |
java.lang.Object |
getDataStructure()
Returns the data structure. |
IValidationMessage |
getErrorMessage()
Returns the error message set. |
java.lang.String |
getFilePath()
Retrieves the path of the current file being processed |
byte |
getPhase()
Specifies the phase that this data builder is active during parsing. |
boolean |
isStructureValid()
Returns true if this structure is valid. |
void |
setErrorMessage(IValidationMessage message)
Sets an error message in case the structure is not valid |
void |
setFilePath(java.lang.String filePath)
Sets the path of the current file being processed |
void |
setStructureValidity(boolean validity)
Sets the structure validity |
void |
startDefinitions()
This method will be called when the parser starts parsing the definition part of the document |
void |
startInstances()
This method will be called when the parser starts parsing the instances part of the document |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
| Method Detail |
|---|
java.lang.Object getDataStructure()
void startDefinitions()
void startInstances()
void endDefinitions()
void endInstances()
byte getPhase()
ISMLConstants.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
boolean isStructureValid()
void setStructureValidity(boolean validity)
validity - The validity of the structurevoid setErrorMessage(IValidationMessage message)
error - The error messageIValidationMessage getErrorMessage()
void setFilePath(java.lang.String filePath)
filePath - The pathjava.lang.String getFilePath()
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||