|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.xsdutil.xsd.schema.XSDSchemaSet
public class XSDSchemaSet
A schema aggregator that is used to compile schema information. This information is later used by the Domino Designer data tooling to calculate how to bind XPage controls to their data sources.
Field Summary | |
---|---|
static java.lang.String |
XML_STANDARD_HEADER
|
Constructor Summary | |
---|---|
XSDSchemaSet()
Creates a new instance of this class. |
|
XSDSchemaSet(java.util.Map<java.lang.String,java.lang.String> nsPrefixToUriMap)
Creates a new instance of this class with the a map of namespaces that will populate the schema set. |
Method Summary | |
---|---|
void |
addRootSchema(org.eclipse.xsd.XSDSchema xsdSchema)
Users will typically call this method to initialize the XSDSchemaSet. |
void |
addSchema(org.eclipse.xsd.XSDSchema xsdSchema)
Add a schema to the set. |
XSDSchemaSet |
cloneWithoutRoot()
Create a clone of this XSDSchemaSet without the root node. |
org.w3c.dom.Document |
createInitialDocument(int rootIndex)
Create an initial document from the current schema. |
java.lang.String |
createInitialDocumentAsString(int rootIndex)
Not intended for external use - Not public api |
java.util.HashMap<java.lang.String,com.ibm.commons.xsdutil.xsd.schema.Namespace> |
getNamespaceByPrefixMap()
Returns a map of namespaces used across all schemas in the SchemaSet |
protected java.util.HashMap<java.lang.String,com.ibm.commons.xsdutil.xsd.schema.Namespace> |
getNamespaceByUriMap()
|
java.lang.String |
getOrCreateNamespacePrefix(java.lang.String uri)
Retrieve the prefix for the requested namespace URI. |
java.util.List |
getReachableItems(XSDConcreteComponentWrapper component)
Iterates through the schema to calculate which items can be 'reached' from the given node. |
org.eclipse.xsd.XSDElementDeclaration[] |
getRootElements()
Returns all "root" elements of the designated root schema. |
org.eclipse.xsd.XSDSchema |
getRootSchema()
Returns the root schema for the schema set. |
org.eclipse.xsd.XSDSchema |
getSchemaByUri(java.lang.String uri)
Return the schema associated with the uri provided, as maintained by this XSDSchemaSet object. |
protected java.util.HashMap<java.lang.String,org.eclipse.xsd.XSDSchema> |
getSchemaMap()
|
java.util.List |
getTypes()
Returns all types defined in all schemas in the schema set |
XSDConcreteComponentWrapper[] |
getWrappedRoots()
Returns an array of wrapped components. |
boolean |
hasCyclicalDependency(XSDConcreteComponentWrapper component)
The XSD might contain circular dependencies. |
void |
print(java.io.PrintStream os)
Dumps the schema set to the given print stream. |
protected void |
setNamespaceByPrefixMap(java.util.HashMap<java.lang.String,com.ibm.commons.xsdutil.xsd.schema.Namespace> map)
|
protected void |
setNamespaceByUriMap(java.util.HashMap<java.lang.String,com.ibm.commons.xsdutil.xsd.schema.Namespace> map)
|
protected void |
setSchemaMap(java.util.HashMap<java.lang.String,org.eclipse.xsd.XSDSchema> map)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XML_STANDARD_HEADER
Constructor Detail |
---|
public XSDSchemaSet()
public XSDSchemaSet(java.util.Map<java.lang.String,java.lang.String> nsPrefixToUriMap)
nsPrefixToUriMap
- a map of prefix-uri pairsMethod Detail |
---|
public org.eclipse.xsd.XSDSchema getRootSchema()
protected java.util.HashMap<java.lang.String,com.ibm.commons.xsdutil.xsd.schema.Namespace> getNamespaceByUriMap()
protected void setNamespaceByUriMap(java.util.HashMap<java.lang.String,com.ibm.commons.xsdutil.xsd.schema.Namespace> map)
public java.util.HashMap<java.lang.String,com.ibm.commons.xsdutil.xsd.schema.Namespace> getNamespaceByPrefixMap()
protected void setNamespaceByPrefixMap(java.util.HashMap<java.lang.String,com.ibm.commons.xsdutil.xsd.schema.Namespace> map)
protected java.util.HashMap<java.lang.String,org.eclipse.xsd.XSDSchema> getSchemaMap()
protected void setSchemaMap(java.util.HashMap<java.lang.String,org.eclipse.xsd.XSDSchema> map)
public java.lang.String getOrCreateNamespacePrefix(java.lang.String uri)
uri
- a fully qualified namespace URI
public org.eclipse.xsd.XSDSchema getSchemaByUri(java.lang.String uri)
uri
- a fully qualified namespace uri
public XSDSchemaSet cloneWithoutRoot()
public void addSchema(org.eclipse.xsd.XSDSchema xsdSchema)
#addSchema(XSDSchema, false)
.
xsdSchema
- the schema to be added to the schema setpublic void addRootSchema(org.eclipse.xsd.XSDSchema xsdSchema)
xsdSchema
- public org.eclipse.xsd.XSDElementDeclaration[] getRootElements()
public XSDConcreteComponentWrapper[] getWrappedRoots()
public java.util.List getReachableItems(XSDConcreteComponentWrapper component)
component
- a component whose reachable items are required
public java.lang.String createInitialDocumentAsString(int rootIndex) throws XMLException
XMLException
public org.w3c.dom.Document createInitialDocument(int rootIndex) throws XMLException
XMLException
public void print(java.io.PrintStream os)
stream
- a stream where the contents of the schema set will be printedpublic boolean hasCyclicalDependency(XSDConcreteComponentWrapper component)
component
- a schema element that is to be tested
public java.util.List getTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |