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
Modifier and TypeMethodDescriptionstatic AxiomModelStatementSource
static AxiomModelStatementSource
from
(InputStream stream) static AxiomModelStatementSource
from
(String sourceName, InputStream stream) static AxiomModelStatementSource
static AxiomModelStatementSource
fromResource
(String resource) imports()
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 Details
-
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
-
namespace
-
imports
-
imports
-
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
- Throws:
AxiomSyntaxException
IOException
-