|
ModeShape Distribution 3.0.1.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.sequencer.sramp.AbstractResolvingReader
public abstract class AbstractResolvingReader
Base class for the S-RAMP based readers, which hold the functionality for resolving references and registering namespaces
| Field Summary | |
|---|---|
protected Sequencer.Context |
context
|
protected Logger |
logger
|
| Constructor Summary | |
|---|---|
AbstractResolvingReader(Sequencer.Context context)
|
|
AbstractResolvingReader(Sequencer.Context context,
SymbolSpaceResolvers resolvers)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Sequencer.Context context
protected final Logger logger
| Constructor Detail |
|---|
public AbstractResolvingReader(Sequencer.Context context,
SymbolSpaceResolvers resolvers)
public AbstractResolvingReader(Sequencer.Context context)
| Method Detail |
|---|
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 null
Exception - if there is a problem reading the XSD content
public 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 null
Exception - if there is a problem reading the XSD content
protected 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 repository
protected String setReference(Node node,
String propertyName,
SymbolSpace kind,
String namespace,
String name)
throws RepositoryException
RepositoryException
|
ModeShape Distribution 3.0.1.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||