|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XmiReader
XMI file reader to deserialize a model into the model repository.
| Method Summary | |
|---|---|
void |
addSearchPath(java.lang.String path)
Add a path to the list of paths to be searched when looking for XMI files to resolve external references with. |
java.lang.String |
getHeader()
Get the header comment from the XMI file, if any. |
int |
getIgnoredElementCount()
Return the count of elements read during the last XMI read which were on the ignore list. |
java.lang.String[] |
getIgnoredElements()
Returns list of element names which will be ignored during XMI import if they cause an error. |
java.util.List<java.lang.String> |
getSearchPath()
Get the list of paths to be searched when looking for XMI files to resolve external references with. |
java.lang.String |
getTagName()
Return the name of the outermost tag in the XMI file. |
java.util.Map<java.lang.String,java.lang.Object> |
getXMIUUIDToObjectMap()
Get the map of external IDs to UML elements. |
java.util.Collection |
parse(org.xml.sax.InputSource pIs)
Deprecated. for 0.25.4 by tfmorris. Use parse(InputSource, boolean). |
java.util.Collection |
parse(org.xml.sax.InputSource pIs,
boolean profile)
Parse a given inputsource to a collection of top level model elements. |
void |
removeSearchPath(java.lang.String path)
Remove a path from the list of paths to be searched when looking for XMI files to resolve external references with. |
boolean |
setIgnoredElements(java.lang.String[] elementNames)
Set the list of element names for which errors should be ignored when reading the XMI file. |
| Method Detail |
|---|
@Deprecated
java.util.Collection parse(org.xml.sax.InputSource pIs)
throws UmlException
parse(InputSource, boolean).
pIs - the input source for parsing
UmlException - on any error
java.util.Collection parse(org.xml.sax.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 errorjava.util.Map<java.lang.String,java.lang.Object> getXMIUUIDToObjectMap()
boolean setIgnoredElements(java.lang.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
java.lang.String[] getIgnoredElements()
int getIgnoredElementCount()
java.lang.String getTagName()
java.util.List<java.lang.String> getSearchPath()
void addSearchPath(java.lang.String path)
TODO: It's desirable to have separate search paths for separate files, but more work is required in ArgoUML so that it knows how to maintain separate contexts for the profiles and user models.
path - a directory path to add to the search pathvoid removeSearchPath(java.lang.String path)
path - directory path to remove from searchjava.lang.String getHeader()
<XMI.documentation>
<XMI.exporter>
ArgoUML (using Netbeans XMI Writer version 1.0)
</XMI.exporter>
<XMI.exporterVersion>
1.4 revised on $Date: 2008-05-22 17:25:35 -0700 (Thu, 22 May 2008) $
</XMI.exporterVersion>
</XMI.documentation>
<XMI.metamodel xmi.name = 'UML' xmi.version = '1.4'/>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Cookbook |