public interface SchemaParser
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
void |
generateClassRules(boolean aValue)
Set a flag to indicate whether instances of Rule-Obj-Class
should be generated and appended to the list of generated rules.
|
void |
generateModelRules(boolean aValue)
Set a flag to indicate whether instances of Rule-Obj-Model
should be generated and appended to the list of generated rules.
|
void |
generateParseRules(boolean aValue)
Set a flag to indicate whether instances of Rule-Parse-XML
should be generated and appended to the list of generated rules.
|
void |
generatePropertyRules(boolean aValue)
Set a flag to indicate whether instances of Rule-Obj-Property
should be generated and appended to the list of generated rules.
|
ClipboardPage |
generateRules()
Generate rules for the selected subset of global complex element
and type definitions.
|
void |
generateStreamRules(boolean aValue)
Set a flag to indicate whether instances of Rule-Obj-XML
should be generated and appended to the list of generated rules.
|
java.util.Map |
getElemNameToClassMap()
Get a map of Rule-Obj-Class names, keyed by the qualified names
of global element declarations.
|
java.util.List |
getGlobalTypeSet(PRFile aFile)
Parse a schema definition document to get the list of global
complex element and type definitions.
|
java.util.List |
getGlobalTypeSet(java.io.Reader aReader)
Parse a schema definition document to get the list of global
complex element and type definitions.
|
java.util.List |
getGlobalTypeSet(java.lang.String aSource)
Parse a schema definition document to get the list of global
complex element and type definitions.
|
java.util.List |
getParseWarnings()
Get a list of warning messages for erroneous but non-fatal
events that occured during the parsing of the schema document.
|
java.util.Map |
getQNameToGeneratedClassMapping()
Deprecated.
|
java.util.Map |
getTypeNameToArrayTypeMap()
Get a map of QName objects for for resolving SOAP array types.
|
java.util.Map |
getTypeNameToClassMap()
Get a map of Rule-Obj-Class names, keyed by the qualified names
of complex type definitions.
|
java.util.Map |
getXSDTypeToStringTypeMap()
Get a map of Rule-Obj-Property string types, keyed by XSD type name.
|
ClipboardPage |
parse(PRFile aFile)
Parse a schema definition document into class, model, and
property instances.
|
ClipboardPage |
parse(java.io.Reader aReader)
Parse a schema definition document into class, model, and
property instances.
|
ClipboardPage |
parse(java.lang.String aSource)
Parse a schema definition document into class, model, and
property instances.
|
void |
setBaseClassPrefix(java.lang.String aClassName)
Set the name of the PegaRULES base class that will be pre-pended
to the class name of all generated rule instances.
|
void |
setDocumentURL(java.net.URL aURL)
Set the URL of the document being parsed.
|
void |
setGlobalTypeSet(java.util.List aTypeSet)
Reset the list of global complex element and type definitions
that will be used for generating rules.
|
void |
setNormalizeClassName(boolean aValue)
Set the 'normalize class name' flag.
|
void |
setNormalizePropertyName(boolean aValue)
Set the 'normalize property name' flag.
|
void |
setResultsPageName(java.lang.String aPageName)
Set the name of the Code-Pega-List page where class
definitions will be stored.
|
void |
setRulesetName(java.lang.String aRulesetName)
Set the name of the PegaRULES ruleset that will be used for
all generated rule instances.
|
void |
setRulesetVersion(java.lang.String aRulesetVersion)
Set the name of the PegaRULES ruleset version that will be
used for all generated rule instances.
|
void |
setTruncateClassName(boolean aValue)
Set the 'truncate class name' flag.
|
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
void setDocumentURL(java.net.URL aURL)
aURL - source document URLvoid setBaseClassPrefix(java.lang.String aClassName)
aClassName - PegaRULES class name identifiervoid setRulesetName(java.lang.String aRulesetName)
aRulesetName - PegaRULES ruleset identifiervoid setRulesetVersion(java.lang.String aRulesetVersion)
aRulesetVersion - PegaRULES ruleset version identifiervoid setResultsPageName(java.lang.String aPageName)
aPageName - name of the Code-Pega-List pagevoid generateClassRules(boolean aValue)
aValue - flag valuevoid generatePropertyRules(boolean aValue)
aValue - flag valuevoid generateModelRules(boolean aValue)
aValue - flag valuevoid generateParseRules(boolean aValue)
aValue - flag valuevoid generateStreamRules(boolean aValue)
aValue - flag valuevoid setNormalizePropertyName(boolean aValue)
aValue - flag valuevoid setNormalizeClassName(boolean aValue)
aValue - flag valuevoid setTruncateClassName(boolean aValue)
aValue - flag valuejava.util.List getGlobalTypeSet(PRFile aFile) throws PRException
aFile - schema definition document, as filePRExceptionjava.util.List getGlobalTypeSet(java.lang.String aSource)
throws PRException
aSource - schema definition document, as stringPRExceptionjava.util.List getGlobalTypeSet(java.io.Reader aReader)
throws PRException
aReader - schema definition document, as readerPRExceptionvoid setGlobalTypeSet(java.util.List aTypeSet)
aTypeSet - list of global definition namesClipboardPage generateRules() throws PRException
PRExceptionClipboardPage parse(PRFile aFile) throws PRException
aFile - schema definition document, as filePRExceptionClipboardPage parse(java.lang.String aSource) throws PRException
aSource - schema definition document, as stringPRExceptionClipboardPage parse(java.io.Reader aReader) throws PRException
aReader - schema definition document, as readerPRExceptionjava.util.List getParseWarnings()
java.util.Map getXSDTypeToStringTypeMap()
java.util.Map getTypeNameToArrayTypeMap()
java.util.Map getTypeNameToClassMap()
java.util.Map getElemNameToClassMap()
java.util.Map getQNameToGeneratedClassMapping()
Copyright © 2014 Pegasystems Inc. All Rights Reserved.