|
UML Modeling Layer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.xtools.uml.msl.internal.resources.parsers.ContainerParser
com.ibm.xtools.uml.msl.internal.resources.parsers.FragmentParser
public class FragmentParser
Parser specialized for fast extracting of the fragment data for the specified resource. If the resource is loaded the parser uses EMF to extract the data. If the resource is not loaded the parser does not cause it to be loaded; rather it uses SAX parser with fast break out algorithm to extract the data.
| Field Summary | |
|---|---|
protected Resource |
parentResource
UML Unit that is the parent of the resource we're parsing. |
| Fields inherited from class com.ibm.xtools.uml.msl.internal.resources.parsers.ContainerParser |
|---|
containerResource, containerUri, resource, resourceHealth |
| Constructor Summary | |
|---|---|
FragmentParser(Resource resource)
Constructor |
|
FragmentParser(Resource resource,
Resource parent)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
checkClosedParentReference(URI uri,
String rootId,
URI fragmentUri)
Checks the validity of the parent reference in a closed resource |
protected void |
checkLoadedParentReference(EModelElement resourceRoot,
EObject eObj,
URI uri)
Checks the validity of the parent reference in a loaded resource |
protected void |
closedFragmentsParse(FragmentHandler fh,
ResourceSet resSet,
URI fragmentUri)
Stub implementation of fragment parsing for subclasses |
List<Resource> |
getFragments()
|
Resource |
getParentResource()
|
protected void |
loadedFragmentsParse(EModelElement resourceRoot,
ResourceSet resSet)
Stub implementation of fragment parsing for subclasses |
| Methods inherited from class com.ibm.xtools.uml.msl.internal.resources.parsers.ContainerParser |
|---|
buildFragmentHandler, closedContainerParse, closedResourceParse, getContainerResource, getContainerUri, getResourceHealth, loadedContainerParse, loadedResourceParse, parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Resource parentResource
| Constructor Detail |
|---|
public FragmentParser(Resource resource)
resource - The resource whose fragment data are collected. The resource
does not have to be loaded.
public FragmentParser(Resource resource,
Resource parent)
resource - The resource whose fragment data are collected. The resource
does not have to be loaded.| Method Detail |
|---|
protected void loadedFragmentsParse(EModelElement resourceRoot,
ResourceSet resSet)
ContainerParser
loadedFragmentsParse in class ContainerParserresourceRoot - root element of the current resourceresSet - active resource set
protected void closedFragmentsParse(FragmentHandler fh,
ResourceSet resSet,
URI fragmentUri)
ContainerParser
closedFragmentsParse in class ContainerParserfh - XML sax element handler for fragmented resourcesresSet - active resource setfragmentUri - uri of the current resource
protected void checkClosedParentReference(URI uri,
String rootId,
URI fragmentUri)
ContainerParser
checkClosedParentReference in class ContainerParseruri - container resource urirootId - id of the root element of the current resourcefragmentUri - uri of the current resource
protected void checkLoadedParentReference(EModelElement resourceRoot,
EObject eObj,
URI uri)
ContainerParser
checkLoadedParentReference in class ContainerParserresourceRoot - root element of the current resourceeObj - container elementuri - uri of the current resourcepublic Resource getParentResource()
public List<Resource> getFragments()
|
UML Modeling Layer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||