@NotThreadSafe public class DdlSequencer extends Sequencer
Sequencer.Context| Modifier and Type | Field and Description |
|---|---|
protected static URL[] |
DEFAULT_CLASSPATH |
protected static List<String> |
DEFAULT_GRAMMARS |
protected static Map<String,DdlParser> |
STANDARD_PARSERS_BY_NAME |
| Constructor and Description |
|---|
DdlSequencer() |
| Modifier and Type | Method and Description |
|---|---|
protected DdlParsers |
createParsers(List<DdlParser> parsers)
Method that creates the DdlParsers instance.
|
boolean |
execute(javax.jcr.Property inputProperty,
javax.jcr.Node outputNode,
Sequencer.Context context) |
URL[] |
getClasspath()
Get the names of the classloaders that should be used to load any non-standard DdlParser implementations specified in the
list of grammars.
|
String[] |
getGrammars()
Get the names of the grammars that should be considered during processing.
|
protected List<DdlParser> |
getParserList() |
void |
initialize(javax.jcr.NamespaceRegistry registry,
NodeTypeManager nodeTypeManager) |
void |
setClasspath(URL[] classpath)
Set the names of the classloaders that should be used to load any non-standard DdlParser implementations specified in the
list of grammars.
|
void |
setGrammars(String[] grammarNamesOrClasses)
Set the names of the grammars that should be considered during processing.
|
getAcceptedMimeTypes, getLogger, getName, getPathExpressions, getRepositoryName, getUniqueId, hasAcceptedMimeTypes, isAccepted, registerDefaultMimeTypes, registerNamespace, registerNodeTypes, registerNodeTypes, toStringprotected static final URL[] DEFAULT_CLASSPATH
protected static final List<String> DEFAULT_GRAMMARS
protected static final Map<String,DdlParser> STANDARD_PARSERS_BY_NAME
public DdlSequencer()
public String[] getGrammars()
identifier of a built-in grammar, or the name of a DdlParser implementation class.public void setGrammars(String[] grammarNamesOrClasses)
identifier of a built-in grammar, or the name of a DdlParser implementation class.grammarNamesOrClasses - the names; may be null if the default grammar list should be usedpublic URL[] getClasspath()
public void setClasspath(URL[] classpath)
classpath - the classloader names that make up the classpath; may be null or empty if the default classpath should be
usedprotected DdlParsers createParsers(List<DdlParser> parsers)
parsers - the list of DdlParser instances to use; may be empty or nullprotected List<DdlParser> getParserList()
public void initialize(javax.jcr.NamespaceRegistry registry, NodeTypeManager nodeTypeManager) throws javax.jcr.RepositoryException, IOException
initialize in class Sequencerjavax.jcr.RepositoryExceptionIOExceptionCopyright © 2008–2018 JBoss, a division of Red Hat. All rights reserved.