Package org.eclipse.epsilon.flexmi.xml
Class FlexmiXmlParser
java.lang.Object
org.eclipse.epsilon.flexmi.xml.FlexmiXmlParser
- All Implemented Interfaces:
FlexmiParser
- Direct Known Subclasses:
FlexmiYamlParser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FlexmiResource
protected org.eclipse.emf.common.util.URI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isFlexmiRootNode
(Element element) protected boolean
isTemplate
(Element element) parse
(InputStream inputStream) Performs the actual parsing of the input contents into a DOMvoid
parse
(FlexmiResource resource, InputStream inputStream, FlexmiXmlParser.Handler handler) Starts the parsing of a Flexmi resourcevoid
parse
(FlexmiResource resource, org.eclipse.emf.common.util.URI uri, InputStream inputStream, FlexmiXmlParser.Handler handler, boolean processDocument) Allows parsing included fragments that have a different URI and do not require startDocument eventsprotected void
visit
(Node node, FlexmiXmlParser.Handler handler)
-
Field Details
-
resource
-
uri
protected org.eclipse.emf.common.util.URI uri
-
-
Constructor Details
-
FlexmiXmlParser
public FlexmiXmlParser()
-
-
Method Details
-
parse
public void parse(FlexmiResource resource, InputStream inputStream, FlexmiXmlParser.Handler handler) throws FlexmiParseException Description copied from interface:FlexmiParser
Starts the parsing of a Flexmi resource- Specified by:
parse
in interfaceFlexmiParser
- Throws:
FlexmiParseException
-
parse
public void parse(FlexmiResource resource, org.eclipse.emf.common.util.URI uri, InputStream inputStream, FlexmiXmlParser.Handler handler, boolean processDocument) throws Exception Description copied from interface:FlexmiParser
Allows parsing included fragments that have a different URI and do not require startDocument events- Specified by:
parse
in interfaceFlexmiParser
- Throws:
Exception
-
parse
Description copied from interface:FlexmiParser
Performs the actual parsing of the input contents into a DOM- Specified by:
parse
in interfaceFlexmiParser
- Throws:
Exception
-
visit
- Throws:
Exception
-
isFlexmiRootNode
-
isTemplate
-
getFlavour
- Specified by:
getFlavour
in interfaceFlexmiParser
-