public class PlasmaXSDHelper extends Object implements commonj.sdo.helper.XSDHelper
| Modifier and Type | Field and Description |
|---|---|
static PlasmaXSDHelper |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
List<commonj.sdo.Type> |
define(InputStream xsdInputStream,
String schemaLocation)
Define XML Schema as Types.
|
List<commonj.sdo.Type> |
define(Reader xsdReader,
String schemaLocation)
Define XML Schema as Types.
|
List<commonj.sdo.Type> |
define(String xsd)
Define the XML Schema as Types.
|
String |
generate(List<commonj.sdo.Type> types)
Generate an XML Schema Declaration (XSD) from Types.
|
String |
generate(List<commonj.sdo.Type> types,
Map<String,String> namespaceToSchemaLocation)
Generate an XML Schema Declaration (XSD) from Types.
|
String |
generate(Query query,
String targetNamespaceURI,
String targetNamespacePrefix,
Map<String,String> namespaceToSchemaLocation)
Generate an XML Schema Declaration (XSD) with dynamically determined
containment references as embodied within the given,
PlasmaQueryTM, query.
|
void |
generate(Query query,
String targetNamespaceURI,
String targetNamespacePrefix,
Map<String,String> namespaceToSchemaLocation,
OutputStream xsdOutputStream) |
String |
getAppinfo(commonj.sdo.Property property,
String source) |
String |
getAppinfo(commonj.sdo.Type type,
String source) |
commonj.sdo.Property |
getGlobalProperty(String uri,
String propertyName,
boolean isElement) |
String |
getLocalName(commonj.sdo.Property property) |
String |
getLocalName(commonj.sdo.Type type) |
String |
getNamespaceURI(commonj.sdo.Property property) |
boolean |
isAttribute(commonj.sdo.Property property) |
boolean |
isElement(commonj.sdo.Property property) |
boolean |
isMixed(commonj.sdo.Type type) |
boolean |
isXSD(commonj.sdo.Type type) |
public static volatile PlasmaXSDHelper INSTANCE
public List<commonj.sdo.Type> define(String xsd)
define in interface commonj.sdo.helper.XSDHelperxsd - the XML Schema.IllegalArgumentException - if the Types could not be defined.public List<commonj.sdo.Type> define(Reader xsdReader, String schemaLocation)
define in interface commonj.sdo.helper.XSDHelperxsdReader - reader to an XML Schema.schemaLocation - the URI of the location of the schema, used for processing
relative imports and includes. May be null if not used.IllegalArgumentException - if the Types could not be defined.public List<commonj.sdo.Type> define(InputStream xsdInputStream, String schemaLocation)
define in interface commonj.sdo.helper.XSDHelperxsdInputStream - input stream to an XML Schema.schemaLocation - the URI of the location of the schema, used for processing
relative imports and includes. May be null if not used.IllegalArgumentException - if the Types could not be defined.public String generate(List<commonj.sdo.Type> types)
generate in interface commonj.sdo.helper.XSDHelpertypes - a List containing the TypesIllegalArgumentException - if the XSD could not be generated.public String generate(List<commonj.sdo.Type> types, Map<String,String> namespaceToSchemaLocation)
generate in interface commonj.sdo.helper.XSDHelpertypes - a List containing the TypesnamespaceToSchemaLocation - map of target namespace to schema locations or nullIllegalArgumentException - if the XSD could not be generated.public String generate(Query query, String targetNamespaceURI, String targetNamespacePrefix, Map<String,String> namespaceToSchemaLocation)
query - the Query used to determine selected types and properties, their
ordering, local names and other informationtargetNamespaceURI - the target namespace for the resulting XSDnamespaceToSchemaLocation - map of target namespace to schema locations or nullIllegalArgumentException - if the XSD could not be generated.org.plasma.query.PathNode,
org.plasma.query.PathNode#getSelectClause,
Selectpublic void generate(Query query, String targetNamespaceURI, String targetNamespacePrefix, Map<String,String> namespaceToSchemaLocation, OutputStream xsdOutputStream)
public String getAppinfo(commonj.sdo.Type type, String source)
getAppinfo in interface commonj.sdo.helper.XSDHelperpublic String getAppinfo(commonj.sdo.Property property, String source)
getAppinfo in interface commonj.sdo.helper.XSDHelperpublic commonj.sdo.Property getGlobalProperty(String uri, String propertyName, boolean isElement)
getGlobalProperty in interface commonj.sdo.helper.XSDHelperpublic String getLocalName(commonj.sdo.Type type)
getLocalName in interface commonj.sdo.helper.XSDHelperpublic String getLocalName(commonj.sdo.Property property)
getLocalName in interface commonj.sdo.helper.XSDHelperpublic String getNamespaceURI(commonj.sdo.Property property)
getNamespaceURI in interface commonj.sdo.helper.XSDHelperpublic boolean isAttribute(commonj.sdo.Property property)
isAttribute in interface commonj.sdo.helper.XSDHelperpublic boolean isElement(commonj.sdo.Property property)
isElement in interface commonj.sdo.helper.XSDHelperpublic boolean isMixed(commonj.sdo.Type type)
isMixed in interface commonj.sdo.helper.XSDHelperpublic boolean isXSD(commonj.sdo.Type type)
isXSD in interface commonj.sdo.helper.XSDHelperCopyright © 2021. All rights reserved.