public class SchemaUtil
extends java.lang.Object
Constructor and Description |
---|
SchemaUtil() |
Modifier and Type | Method and Description |
---|---|
static com.fourjs.report.designtime.trigger.Field[] |
getFields(java.lang.String schemaFileName,
java.lang.String rootElementName,
java.lang.String triggerNameConstraint)
Returns all fields from the specified trigger extracted from the grammar in the XML schema file (.xsd).
|
static org.w3c.dom.Document |
getPreviousSchemaDocument(org.w3c.dom.Document doc) |
static org.w3c.dom.Document |
getPreviousSchemaDocument(java.net.URL absoluteURL) |
static java.net.URL |
getPreviousSchemaURL(org.w3c.dom.Document doc) |
static java.net.URL |
getPreviousSchemaURL(java.net.URL absoluteURL) |
static java.net.URL |
getRootSchemaURL(java.net.URL absoluteURL) |
static org.w3c.dom.Document |
getSchemaDocument(java.net.URL absoluteURL) |
static com.fourjs.report.designtime.trigger.Trigger |
getTriggerTree(java.lang.String schemaFileName,
java.lang.String rootElementName,
java.lang.String[] fglRootElementName)
Returns a "trigger tree" suited for matching the data described by the grammar in the XML schema file (.xsd).
|
static com.fourjs.report.designtime.trigger.Trigger |
getTriggerTree(java.lang.String schemaFileName,
java.lang.String systemId,
java.lang.String rootElementName,
java.lang.String[] fglRootElementName,
java.lang.String filterId) |
static com.fourjs.report.designtime.trigger.Trigger |
getTriggerTree(java.net.URL schemaURL,
java.lang.String rootElementName,
java.lang.String[] fglRootElementName,
int cutoffValue,
java.lang.String filterId,
boolean input) |
static com.fourjs.report.designtime.trigger.Trigger |
getTriggerTree(java.net.URL schemaURL,
java.lang.String rootElementName,
java.lang.String[] fglRootElementName,
java.lang.String filterId) |
static boolean |
hasFglRootSchema(java.net.URL absoluteURL)
returns true if the the root schema is a .rdd schema
|
public static com.fourjs.report.designtime.trigger.Trigger getTriggerTree(java.lang.String schemaFileName, java.lang.String rootElementName, java.lang.String[] fglRootElementName) throws DesignFileException
schemaFileName
- Specifies an XML schema file
(.xsd) describing the data source of the report.rootElementName
- Specifies the expected document root
in the XML schema file (e.g. if the schema specifies
the elements "invoice" and "invoice-batch" then
rootElementName would be set to "invoice" if the report
will be run against a source that produces documents
whose root element is of type "invoice".Trigger
object that is the root of
Specifies an XML schema file
(.xsd) describing the data source of the report.DesignFileException
- if the parse fails due to a IO error, a syntactic issue or the schema document does not meet the requirements.public static com.fourjs.report.designtime.trigger.Trigger getTriggerTree(java.lang.String schemaFileName, java.lang.String systemId, java.lang.String rootElementName, java.lang.String[] fglRootElementName, java.lang.String filterId) throws DesignFileException
DesignFileException
public static com.fourjs.report.designtime.trigger.Trigger getTriggerTree(java.net.URL schemaURL, java.lang.String rootElementName, java.lang.String[] fglRootElementName, int cutoffValue, java.lang.String filterId, boolean input) throws DesignFileException
DesignFileException
public static com.fourjs.report.designtime.trigger.Trigger getTriggerTree(java.net.URL schemaURL, java.lang.String rootElementName, java.lang.String[] fglRootElementName, java.lang.String filterId) throws DesignFileException
DesignFileException
public static com.fourjs.report.designtime.trigger.Field[] getFields(java.lang.String schemaFileName, java.lang.String rootElementName, java.lang.String triggerNameConstraint) throws DesignFileException
schemaFileName
- Specifies an XML schema file
(.xsd) describing the data source of the report.rootElementName
- Specifies the expected document root
in the XML schema file (e.g. if the schema specifies
the elements "invoice" and "invoice-batch" then
rootElementName would be set to "invoice" if the report
will be run against a source that produces documents
whose root element is of type "invoice".triggerNameConstraint
- Specifies the trigger for which the fields are to be retrieved by it's element name constraint.Field
objects defined on the soecified trigger.DesignFileException
- if the parse fails due to a IO error, a syntactic issue or the schema document does not meet the requirements.public static boolean hasFglRootSchema(java.net.URL absoluteURL) throws DesignFileException
DesignFileException
public static java.net.URL getRootSchemaURL(java.net.URL absoluteURL) throws DesignFileException
DesignFileException
public static org.w3c.dom.Document getSchemaDocument(java.net.URL absoluteURL) throws DesignFileException
DesignFileException
public static org.w3c.dom.Document getPreviousSchemaDocument(java.net.URL absoluteURL) throws DesignFileException
DesignFileException
public static org.w3c.dom.Document getPreviousSchemaDocument(org.w3c.dom.Document doc) throws DesignFileException
DesignFileException
public static java.net.URL getPreviousSchemaURL(java.net.URL absoluteURL) throws DesignFileException
DesignFileException
public static java.net.URL getPreviousSchemaURL(org.w3c.dom.Document doc) throws DesignFileException
DesignFileException