| Modifier and Type | Field and Description |
|---|---|
static PlasmaXSDHelper |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
List<Type> |
define(InputStream xsdInputStream,
String schemaLocation)
Define XML Schema as Types.
|
List<Type> |
define(Reader xsdReader,
String schemaLocation)
Define XML Schema as Types.
|
List<Type> |
define(String xsd)
Define the XML Schema as Types.
|
String |
generate(List<Type> types)
Generate an XML Schema Declaration (XSD) from Types.
|
String |
generate(List<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(Property property,
String source) |
String |
getAppinfo(Type type,
String source) |
Property |
getGlobalProperty(String uri,
String propertyName,
boolean isElement) |
String |
getLocalName(Property property) |
String |
getLocalName(Type type) |
String |
getNamespaceURI(Property property) |
boolean |
isAttribute(Property property) |
boolean |
isElement(Property property) |
boolean |
isMixed(Type type) |
boolean |
isXSD(Type type) |
public static volatile PlasmaXSDHelper INSTANCE
public List<Type> define(String xsd)
define in interface XSDHelperxsd - the XML Schema.IllegalArgumentException - if the Types could not be defined.public List<Type> define(Reader xsdReader, String schemaLocation)
define in interface 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<Type> define(InputStream xsdInputStream, String schemaLocation)
define in interface 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<Type> types)
generate in interface XSDHelpertypes - a List containing the TypesIllegalArgumentException - if the XSD could not be generated.public String generate(List<Type> types, Map<String,String> namespaceToSchemaLocation)
generate in interface 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(Type type, String source)
getAppinfo in interface XSDHelperpublic String getAppinfo(Property property, String source)
getAppinfo in interface XSDHelperpublic Property getGlobalProperty(String uri, String propertyName, boolean isElement)
getGlobalProperty in interface XSDHelperpublic String getLocalName(Type type)
getLocalName in interface XSDHelperpublic String getLocalName(Property property)
getLocalName in interface XSDHelperpublic String getNamespaceURI(Property property)
getNamespaceURI in interface XSDHelperpublic boolean isAttribute(Property property)
isAttribute in interface XSDHelperpublic boolean isElement(Property property)
Copyright © 2017. All rights reserved.