Class StereotypeApplicationListener
java.lang.Object
org.palladiosimulator.simulizar.measuringpoint.create.StereotypeApplicationListener
- All Implemented Interfaces:
EventListener
,IResourceChangeListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.eclipse.core.resources.IResourceChangeListener
PROPERTY_EVENT_MASK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createMeasuringPoint
(String resourceURI) Creating a ResourceURIMeasuringPoint file with the specified file name and the resourceURI of the element for which we want to create a measuring point.static Document
Parses the document represented by the resource.void
Responding to the change of a resource.
-
Field Details
-
RESOURCE_URI_ATTRIBUTE_NAME
- See Also:
-
APPLIED_TO_ELEMENT_TAG_NAME
- See Also:
-
HREF_ATTRIBUTE_NAME
- See Also:
-
MEASURING_POINT_FILE_EXTENSION
- See Also:
-
MEASURING_POINT_STEREOTYPE_APPLICATION_FILE_EXTENSION
- See Also:
-
-
Constructor Details
-
StereotypeApplicationListener
-
-
Method Details
-
resourceChanged
Responding to the change of a resource. In this case we find all the profile application files concerning measuring point stereotypes. We create a measuring point per measuring point stereotype application.- Specified by:
resourceChanged
in interfaceIResourceChangeListener
-
getParsedDocument
public static Document getParsedDocument(IResource r) throws ParserConfigurationException, SAXException, IOException Parses the document represented by the resource.- Parameters:
r
- the resource that represents the document which should be parsed.- Returns:
- parsed document.
- Throws:
ParserConfigurationException
- exception thrown if the document could not be parsed.SAXException
- an exception thrown by the SAX.IOException
- an exception indicating some IO operation on the resource could not be performed correctly.
-
createMeasuringPoint
Creating a ResourceURIMeasuringPoint file with the specified file name and the resourceURI of the element for which we want to create a measuring point.- Parameters:
fileName
- name of the file to created that represents the measuring point.resourceURI
- resourceURI of the element for which we create a measuring point.- Throws:
IOException
- indicates that there was a problem with saving the resource.
-