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 AxiomModelStatementSourcestatic AxiomModelStatementSourcefrom(InputStream stream) static AxiomModelStatementSourcefrom(String sourceName, InputStream stream) static AxiomModelStatementSourcestatic AxiomModelStatementSourcefromResource(String resource) imports()resolveIdentifier(@Nullable String prefix, @NotNull String localName) voidstream(AxiomItemStream.TargetWithContext target, AntlrDecoderContext antlrDecoderContext) Methods inherited from class com.evolveum.axiom.lang.antlr.AxiomAntlrStatementSource
contextFrom, root, sourceName, streamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
IOExceptionAxiomSyntaxException
-
from
public static AxiomModelStatementSource from(String sourceName, InputStream stream) throws IOException, AxiomSyntaxException - Throws:
IOExceptionAxiomSyntaxException
-
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:
resolveIdentifierin interfaceAxiomNameResolver
-
stream
public void stream(AxiomItemStream.TargetWithContext target, AntlrDecoderContext antlrDecoderContext) -
fromResource
public static AxiomModelStatementSource fromResource(String resource) throws AxiomSyntaxException, IOException - Throws:
AxiomSyntaxExceptionIOException
-
from
- Throws:
AxiomSyntaxExceptionIOException
-