Package com.evolveum.axiom.lang.antlr
Class AxiomModelStatementSource
- java.lang.Object
-
- com.evolveum.axiom.lang.antlr.AxiomAntlrStatementSource
-
- com.evolveum.axiom.lang.antlr.AxiomModelStatementSource
-
- All Implemented Interfaces:
AxiomNameResolver
public class AxiomModelStatementSource extends AxiomAntlrStatementSource implements AxiomNameResolver
-
-
Field Summary
-
Fields inherited from interface com.evolveum.axiom.lang.spi.AxiomNameResolver
AXIOM_DEFAULT_NAMESPACE, BUILTIN_TYPES, BUILTINS, NULL_RESOLVER
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AxiomModelStatementSource
from(File file)
static AxiomModelStatementSource
from(InputStream stream)
static AxiomModelStatementSource
from(String sourceName, InputStream stream)
static AxiomModelStatementSource
from(String sourceName, org.antlr.v4.runtime.CharStream stream)
static AxiomModelStatementSource
fromResource(String resource)
Map<String,String>
imports()
static Map<String,String>
imports(AxiomParser.ItemValueContext root)
String
modelName()
String
namespace()
AxiomName
resolveIdentifier(@Nullable String prefix, @NotNull String localName)
void
stream(AxiomItemStream.TargetWithContext target, AntlrDecoderContext antlrDecoderContext)
-
Methods inherited from class com.evolveum.axiom.lang.antlr.AxiomAntlrStatementSource
contextFrom, root, sourceName, stream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.axiom.lang.spi.AxiomNameResolver
or, orPrefix, resolve
-
-
-
-
Method Detail
-
from
public static AxiomModelStatementSource from(InputStream stream) throws IOException, AxiomSyntaxException
- Throws:
IOException
AxiomSyntaxException
-
from
public static AxiomModelStatementSource from(String sourceName, InputStream stream) throws IOException, AxiomSyntaxException
- Throws:
IOException
AxiomSyntaxException
-
from
public static AxiomModelStatementSource from(String sourceName, org.antlr.v4.runtime.CharStream stream) throws AxiomSyntaxException
- Throws:
AxiomSyntaxException
-
modelName
public String modelName()
-
namespace
public String namespace()
-
imports
public static Map<String,String> imports(AxiomParser.ItemValueContext root)
-
resolveIdentifier
public AxiomName resolveIdentifier(@Nullable @Nullable String prefix, @NotNull @NotNull String localName)
- Specified by:
resolveIdentifier
in interfaceAxiomNameResolver
-
stream
public void stream(AxiomItemStream.TargetWithContext target, AntlrDecoderContext antlrDecoderContext)
-
fromResource
public static AxiomModelStatementSource fromResource(String resource) throws AxiomSyntaxException, IOException
- Throws:
AxiomSyntaxException
IOException
-
from
public static AxiomModelStatementSource from(File file) throws AxiomSyntaxException, IOException
- Throws:
AxiomSyntaxException
IOException
-
-