public abstract class AbstractResolvingReader extends Object
Modifier and Type | Field and Description |
---|---|
protected Sequencer.Context |
context |
protected Logger |
logger |
Constructor and Description |
---|
AbstractResolvingReader(Sequencer.Context context) |
AbstractResolvingReader(Sequencer.Context context,
SymbolSpaceResolvers resolvers) |
Modifier and Type | Method and Description |
---|---|
Sequencer.Context |
getContext()
Get the sequencing context in which this reader is being used.
|
SymbolSpaceResolvers |
getResolvers() |
abstract void |
read(InputSource source,
Node outputNode)
Read the document from the supplied stream, and produce the derived content.
|
void |
read(InputStream stream,
Node outputNode)
Read the document from the supplied stream, and produce the derived content.
|
protected void |
registerForSymbolSpace(SymbolSpace symbolSpace,
String namespace,
String name,
String identifier) |
protected String |
registerNamespace(NamespaceRegistry registry,
String namespaceUri,
String defaultPrefix) |
void |
resolveReferences()
Attempt to resolve any references that remain unresolved.
|
protected String |
setReference(Node node,
String propertyName,
SymbolSpace kind,
String namespace,
String name) |
protected final Sequencer.Context context
protected final Logger logger
public AbstractResolvingReader(Sequencer.Context context, SymbolSpaceResolvers resolvers)
public AbstractResolvingReader(Sequencer.Context context)
public SymbolSpaceResolvers getResolvers()
public Sequencer.Context getContext()
public void read(InputStream stream, Node outputNode) throws Exception
stream
- the stream; may not be nulloutputNode
- the parent node at which the derived content should be written; may not be nullException
- if there is a problem reading the XSD contentpublic abstract void read(InputSource source, Node outputNode) throws Exception
source
- the input source of the document; may not be nulloutputNode
- the parent node at which the derived content should be written; may not be nullException
- if there is a problem reading the XSD contentprotected void registerForSymbolSpace(SymbolSpace symbolSpace, String namespace, String name, String identifier)
symbolSpace
- the symbol space; may not be nullnamespace
- the namespace URI; may not be nullname
- the nameidentifier
- the identifierNamespaceEntityResolver.register(String, String, String)
protected String registerNamespace(NamespaceRegistry registry, String namespaceUri, String defaultPrefix) throws RepositoryException
RepositoryException
public void resolveReferences() throws RepositoryException
SymbolSpaceResolvers
with multiple AbstractResolvingReader
instances.RepositoryException
- if there is a problem resolving references in the repositoryprotected String setReference(Node node, String propertyName, SymbolSpace kind, String namespace, String name) throws RepositoryException
RepositoryException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.