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 AxiomModelStatementSourcefrom(File file)static AxiomModelStatementSourcefrom(InputStream stream)static AxiomModelStatementSourcefrom(String sourceName, InputStream stream)static AxiomModelStatementSourcefrom(String sourceName, org.antlr.v4.runtime.CharStream stream)static AxiomModelStatementSourcefromResource(String resource)Map<String,String>imports()static Map<String,String>imports(AxiomParser.ItemValueContext root)StringmodelName()Stringnamespace()AxiomNameresolveIdentifier(@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, 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:
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
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:
resolveIdentifierin interfaceAxiomNameResolver
-
stream
public void stream(AxiomItemStream.TargetWithContext target, AntlrDecoderContext antlrDecoderContext)
-
fromResource
public static AxiomModelStatementSource fromResource(String resource) throws AxiomSyntaxException, IOException
- Throws:
AxiomSyntaxExceptionIOException
-
from
public static AxiomModelStatementSource from(File file) throws AxiomSyntaxException, IOException
- Throws:
AxiomSyntaxExceptionIOException
-
-