|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.plasma.sdo.helper.PlasmaXSDHelper
public class PlasmaXSDHelper
| Field Summary | |
|---|---|
static PlasmaXSDHelper |
INSTANCE
|
| Method Summary | |
|---|---|
java.util.List<Type> |
define(java.io.InputStream xsdInputStream,
java.lang.String schemaLocation)
Define XML Schema as Types. |
java.util.List<Type> |
define(java.io.Reader xsdReader,
java.lang.String schemaLocation)
Define XML Schema as Types. |
java.util.List<Type> |
define(java.lang.String xsd)
Define the XML Schema as Types. |
java.lang.String |
generate(java.util.List<Type> types)
Generate an XML Schema Declaration (XSD) from Types. |
java.lang.String |
generate(java.util.List<Type> types,
java.util.Map<java.lang.String,java.lang.String> namespaceToSchemaLocation)
Generate an XML Schema Declaration (XSD) from Types. |
java.lang.String |
generate(Query query,
java.lang.String targetNamespaceURI,
java.lang.String targetNamespacePrefix,
java.util.Map<java.lang.String,java.lang.String> namespaceToSchemaLocation)
Generate an XML Schema Declaration (XSD) with dynamically determined containment references as embodied within the given, PlasmaQueryTM, query. |
void |
generate(Query query,
java.lang.String targetNamespaceURI,
java.lang.String targetNamespacePrefix,
java.util.Map<java.lang.String,java.lang.String> namespaceToSchemaLocation,
java.io.OutputStream xsdOutputStream)
|
java.lang.String |
getAppinfo(Property property,
java.lang.String source)
Return the content of the appinfo declared for this Property and source. |
java.lang.String |
getAppinfo(Type type,
java.lang.String source)
Return the appinfo declared for this Type and source. |
Property |
getGlobalProperty(java.lang.String uri,
java.lang.String propertyName,
boolean isElement)
Returns the Property defined by the named global element or attribute in the targetNamespace uri, or null if not found. |
java.lang.String |
getLocalName(Property property)
Returns the local name as declared in the XSD. |
java.lang.String |
getLocalName(Type type)
Returns the local name as declared in the XSD. |
java.lang.String |
getNamespaceURI(Property property)
Returns the namespace URI as declared in the XSD. |
boolean |
isAttribute(Property property)
Returns true if the property is declared as an attribute in the XSD. |
boolean |
isElement(Property property)
Returns true if the property is declared as an element in the XSD. |
boolean |
isMixed(Type type)
Returns true if the Type is declared to contain mixed content. |
boolean |
isXSD(Type type)
Indicates if this helper contains XSD information for the specified type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static PlasmaXSDHelper INSTANCE
| Method Detail |
|---|
public java.util.List<Type> define(java.lang.String xsd)
define in interface XSDHelperxsd - the XML Schema.
java.lang.IllegalArgumentException - if the Types could not be defined.
public java.util.List<Type> define(java.io.Reader xsdReader,
java.lang.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.
java.lang.IllegalArgumentException - if the Types could not be defined.
public java.util.List<Type> define(java.io.InputStream xsdInputStream,
java.lang.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.
java.lang.IllegalArgumentException - if the Types could not be defined.public java.lang.String generate(java.util.List<Type> types)
generate in interface XSDHelpertypes - a List containing the Types
java.lang.IllegalArgumentException - if the XSD could not be generated.
public java.lang.String generate(java.util.List<Type> types,
java.util.Map<java.lang.String,java.lang.String> namespaceToSchemaLocation)
generate in interface XSDHelpertypes - a List containing the TypesnamespaceToSchemaLocation - map of target namespace to schema locations or null
java.lang.IllegalArgumentException - if the XSD could not be generated.
public java.lang.String generate(Query query,
java.lang.String targetNamespaceURI,
java.lang.String targetNamespacePrefix,
java.util.Map<java.lang.String,java.lang.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 null
java.lang.IllegalArgumentException - if the XSD could not be generated.org.plasma.query.PathNode,
org.plasma.query.PathNode#getSelectClause,
Select
public void generate(Query query,
java.lang.String targetNamespaceURI,
java.lang.String targetNamespacePrefix,
java.util.Map<java.lang.String,java.lang.String> namespaceToSchemaLocation,
java.io.OutputStream xsdOutputStream)
public java.lang.String getAppinfo(Type type,
java.lang.String source)
XSDHelper
getAppinfo in interface XSDHelpertype - the type with the appinfo declarationsource - the source of the appinfo declaration.
public java.lang.String getAppinfo(Property property,
java.lang.String source)
XSDHelper
getAppinfo in interface XSDHelperproperty - the Property with the appinfo declarationsource - the source of the appinfo declaration.
public Property getGlobalProperty(java.lang.String uri,
java.lang.String propertyName,
boolean isElement)
XSDHelper
getGlobalProperty in interface XSDHelperuri - The uri of the targetNamespace.propertyName - The name of the global property.isElement - is true for global elements, false for global attributes.
public java.lang.String getLocalName(Type type)
XSDHelper
getLocalName in interface XSDHelpertype - to return local name for.
public java.lang.String getLocalName(Property property)
XSDHelper
getLocalName in interface XSDHelperproperty - to return local name for.
public java.lang.String getNamespaceURI(Property property)
XSDHelper
getNamespaceURI in interface XSDHelperproperty - to return namespace URI for.
public boolean isAttribute(Property property)
XSDHelper
isAttribute in interface XSDHelperproperty - to identify if an attribute.
public boolean isElement(Property property)
XSDHelper
isElement in interface XSDHelperproperty - to identify if an element.
public boolean isMixed(Type type)
XSDHelper
isMixed in interface XSDHelpertype - to identify if mixed content.
public boolean isXSD(Type type)
XSDHelper
isXSD in interface XSDHelpertype - the type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||