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
public class FlexmiXmlParser extends Object implements FlexmiParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FlexmiXmlParser.Handler
-
Field Summary
Fields Modifier and Type Field Description protected FlexmiResource
resource
protected org.eclipse.emf.common.util.URI
uri
-
Constructor Summary
Constructors Constructor Description FlexmiXmlParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlexmiFlavour
getFlavour()
protected boolean
isFlexmiRootNode(Element element)
protected boolean
isTemplate(Element element)
Document
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 Detail
-
resource
protected FlexmiResource resource
-
uri
protected org.eclipse.emf.common.util.URI uri
-
-
Method Detail
-
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
public Document parse(InputStream inputStream) throws Exception
Description copied from interface:FlexmiParser
Performs the actual parsing of the input contents into a DOM- Specified by:
parse
in interfaceFlexmiParser
- Throws:
Exception
-
visit
protected void visit(Node node, FlexmiXmlParser.Handler handler) throws Exception
- Throws:
Exception
-
isFlexmiRootNode
protected boolean isFlexmiRootNode(Element element)
-
isTemplate
protected boolean isTemplate(Element element)
-
getFlavour
public FlexmiFlavour getFlavour()
- Specified by:
getFlavour
in interfaceFlexmiParser
-
-