|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A wrapper around the genuine XmiReader that provides public access with no knowledge of actual UML implementation. Unlike many of the interfaces to the model there is no control to force a single instance of an XmiReader. This is to allow work objects generated by the imlementation to be garbage collected when an XmiReader instance falls out of scope.
| Method Summary | |
int |
getIgnoredElementCount()
Return the count of elements read during the last XMI read which were on the ignore list. |
String[] |
getIgnoredElements()
Returns list of element names which will be ignored during XMI import if they cause an error. |
Map |
getXMIUUIDToObjectMap()
|
Collection |
parse(InputSource pIs)
Parse a given inputsource to a collection of top level model elements. |
Collection |
parse(InputSource pIs,
boolean profile)
Parse a given inputsource to a collection of top level model elements. |
Object |
parseToModel(InputSource pIs)
Deprecated. use parse() |
boolean |
setIgnoredElements(String[] elementNames)
Set the list of element names for which errors should be ignored when reading the XMI file. |
| Method Detail |
public Object parseToModel(InputSource pIs)
throws UmlException
pIs - the input source for parsing
UmlException - on any error
public Collection parse(InputSource pIs)
throws UmlException
pIs - the input source for parsing
UmlException - on any error
public Collection parse(InputSource pIs,
boolean profile)
throws UmlException
pIs - the input source for parsingprofile - true if the resulting model will be used as a profile.
Profiles are read-only and will not be written back out when
the model data is written.
UmlException - on any errorpublic Map getXMIUUIDToObjectMap()
public boolean setIgnoredElements(String[] elementNames)
This may not be supported by all implementations. The method will return false if unsupported.
elementNames - array of element names which reader should ignore
public String[] getIgnoredElements()
public int getIgnoredElementCount()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |