| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private XSObjectList | |
| private final XSNamedMap[] | |
| private final int | |
| private final SchemaGrammar[] | |
| private final SymbolHash | |
| private final boolean | |
| private final String[] | |
| private final StringList | |
| private final XSNamedMap[][] | |
| private final SymbolHash | |
| private static final boolean[] | |
| private static final short |
| Access | Constructor and Description |
|---|---|
| public | XSModelImpl(SchemaGrammar[]
the array of schema grammars grammars)Construct an XSModelImpl, by storing some grammars and grammars imported by them to this object. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private SymbolHash | |
| private SymbolHash | |
| public XSNamespaceItem | get(int index)
Implements abstract java. Implements java. Returns the element at the specified position in this list. |
| public synchronized XSObjectList | getAnnotations()
Implements com. [annotations]: a set of annotations if it exists, otherwise an empty
|
| public XSAttributeDeclaration | Returns: A top-level attribute declaration or null if such declaration does not exist.The name of the declaration. name, String The namespace of the definition, otherwise null. namespace)Implements com. Convenience method. |
| public XSAttributeDeclaration | Returns: A top-level attribute declaration or null if such declaration does not exist.The name of the declaration. name, String The namespace of the definition, otherwise null. namespace, String The schema location where the component was defined loc)Convenience method. |
| public XSAttributeGroupDefinition | Returns: A top-level attribute group definition or null if such definition does not exist.The name of the definition. name, String The namespace of the definition, otherwise null. namespace)Implements com. Convenience method. |
| public XSAttributeGroupDefinition | Returns: A top-level attribute group definition or null if such definition does not exist.The name of the definition. name, String The namespace of the definition, otherwise null. namespace, String The schema location where the component was defined loc)Convenience method. |
| public synchronized XSNamedMap | Returns: A list of top-level definitions of the specified type inobjectType or an empty XSNamedMap if no
such definitions exist.The type of the declaration, i.e.
objectType)ELEMENT_DECLARATION. Note that
XSTypeDefinition.SIMPLE_TYPE and
XSTypeDefinition.COMPLEX_TYPE can also be used as the
objectType to retrieve only complex types or simple
types, instead of all types.Implements com. Returns a list of top-level components, i.e. element declarations, attribute declarations, etc. |
| public synchronized XSNamedMap | Returns: A list of top-level definitions of the specified type inobjectType and defined in the specified
namespace or an empty XSNamedMap.The type of the declaration, i.e.
objectType, String ELEMENT_DECLARATION.The namespace to which the declaration belongs or
namespace)null (for components with no target namespace).Implements com. Convenience method. |
| public XSElementDeclaration | Returns: A top-level element declaration or null if such declaration does not exist.The name of the declaration. name, String The namespace of the definition, otherwise null. namespace)Implements com. Convenience method. |
| public XSElementDeclaration | Returns: A top-level element declaration or null if such declaration does not exist.The name of the declaration. name, String The namespace of the definition, otherwise null. namespace, String The schema location where the component was defined loc)Convenience method. |
| private XSObjectListImpl | |
| public XSIDCDefinition | Returns: A top-level model group definition definition or null if such definition does not exist.The name of the definition. name, String The namespace of the definition, otherwise null. namespace)Implements com. Convenience method. |
| public XSIDCDefinition | Returns: A top-level model group definition definition or null if such definition does not exist.The name of the definition. name, String The namespace of the definition, otherwise null. namespace, String The schema location where the component was defined loc)Convenience method. |
| public int | getLength()
Implements com. The number of |
| public XSModelGroupDefinition | Returns: A top-level model group definition definition or null if such definition does not exist.The name of the definition. name, String The namespace of the definition, otherwise null. namespace)Implements com. Convenience method. |
| public XSModelGroupDefinition | Returns: A top-level model group definition definition or null if such definition does not exist.The name of the definition. name, String The namespace of the definition, otherwise null. namespace, String The schema location where the component was defined loc)Convenience method. |
| public XSNamespaceItemList | getNamespaceItems()
Implements com. A set of namespace schema information information items (of type
|
| public StringList | Returns: A list of all namespaces that belong to this schema ornull if all components don't have a targetNamespace.Implements com. Convenience method. |
| public XSNotationDeclaration | getNotationDeclaration(String name, String namespace)
Implements com. Convenience method. |
| public XSNotationDeclaration | |
| public XSObjectList | Returns: A list containing the members of the substitution group for the givenXSElementDeclaration or an empty
XSObjectList if the substitution group contains
no members.The substitution group head. head)Implements com. Convenience method. |
| public XSTypeDefinition | Returns: AnXSTypeDefinition or null if such definition
does not exist.The name of the definition. name, String The namespace of the definition, otherwise null. namespace)Implements com. Convenience method. |
| public XSTypeDefinition | Returns: AnXSTypeDefinition or null if such definition
does not exist.The name of the definition. name, String The namespace of the definition, otherwise null. namespace, String The schema location where the component was defined loc)Convenience method. |
| public boolean | |
| public XSNamespaceItem | Returns: TheXSNamespaceItem at the indexth
position in the XSNamespaceItemList, or
null if the index specified is not valid.index into the collection. index)Implements com. Returns the |
| public Iterator | iterator()
Overrides java. Implements java. Returns an iterator over the elements in this list in proper sequence. |
| public ListIterator | listIterator()
Overrides java. Implements java. Returns a list iterator over the elements in this list (in proper sequence). |
| public ListIterator | listIterator(int index)
Overrides java. Implements java. Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list. |
| private ListIterator | |
| private static final String | |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this list. |
| public Object[] | toArray()
Overrides java. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
| public Object[] | toArray(Object[] a)
Overrides java. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. |
| private void |
| fAnnotations | back to summary |
|---|---|
| private XSObjectList fAnnotations | |
| fGlobalComponents | back to summary |
|---|---|
| private final XSNamedMap[] fGlobalComponents | |
| fGrammarCount | back to summary |
|---|---|
| private final int fGrammarCount | |
| fGrammarList | back to summary |
|---|---|
| private final SchemaGrammar[] fGrammarList | |
| fGrammarMap | back to summary |
|---|---|
| private final SymbolHash fGrammarMap | |
| fHasIDC | back to summary |
|---|---|
| private final boolean fHasIDC | |
| fNamespaces | back to summary |
|---|---|
| private final String[] fNamespaces | |
| fNamespacesList | back to summary |
|---|---|
| private final StringList fNamespacesList | |
| fNSComponents | back to summary |
|---|---|
| private final XSNamedMap[][] fNSComponents | |
| fSubGroupMap | back to summary |
|---|---|
| private final SymbolHash fSubGroupMap | |
| GLOBAL_COMP | back to summary |
|---|---|
| private static final boolean[] GLOBAL_COMP | |
| MAX_COMP_IDX | back to summary |
|---|---|
| private static final short MAX_COMP_IDX | |
| XSModelImpl | back to summary |
|---|---|
| public XSModelImpl(SchemaGrammar[] grammars) Construct an XSModelImpl, by storing some grammars and grammars imported by them to this object.
| |
| XSModelImpl | back to summary |
|---|---|
| public XSModelImpl(SchemaGrammar[] grammars, short s4sVersion) | |
| buildSubGroups | back to summary |
|---|---|
| private SymbolHash buildSubGroups() | |
| buildSubGroups_Org | back to summary |
|---|---|
| private SymbolHash buildSubGroups_Org() | |
| get | back to summary |
|---|---|
| public XSNamespaceItem get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list. | |
| getAnnotations | back to summary |
|---|---|
| public synchronized XSObjectList getAnnotations() Implements com. [annotations]: a set of annotations if it exists, otherwise an empty
| |
| getAttributeDeclaration | back to summary |
|---|---|
| public XSAttributeDeclaration getAttributeDeclaration(String name, String namespace) Implements com. Convenience method. Returns a top-level attribute declaration.
| |
| getAttributeDeclaration | back to summary |
|---|---|
| public XSAttributeDeclaration getAttributeDeclaration(String name, String namespace, String loc) Convenience method. Returns a top-level attribute declaration.
| |
| getAttributeGroup | back to summary |
|---|---|
| public XSAttributeGroupDefinition getAttributeGroup(String name, String namespace) Implements com. Convenience method. Returns a top-level attribute group definition.
| |
| getAttributeGroup | back to summary |
|---|---|
| public XSAttributeGroupDefinition getAttributeGroup(String name, String namespace, String loc) Convenience method. Returns a top-level attribute group definition.
| |
| getComponents | back to summary |
|---|---|
| public synchronized XSNamedMap getComponents(short objectType) Implements com. Returns a list of top-level components, i.e. element declarations, attribute declarations, etc.
| |
| getComponentsByNamespace | back to summary |
|---|---|
| public synchronized XSNamedMap getComponentsByNamespace(short objectType, String namespace) Implements com. Convenience method. Returns a list of top-level component declarations that are defined within the specified namespace, i.e. element declarations, attribute declarations, etc.
| |
| getElementDeclaration | back to summary |
|---|---|
| public XSElementDeclaration getElementDeclaration(String name, String namespace) Implements com. Convenience method. Returns a top-level element declaration.
| |
| getElementDeclaration | back to summary |
|---|---|
| public XSElementDeclaration getElementDeclaration(String name, String namespace, String loc) Convenience method. Returns a top-level element declaration.
| |
| getGlobalElements | back to summary |
|---|---|
| private XSObjectListImpl getGlobalElements() | |
| getIDCDefinition | back to summary |
|---|---|
| public XSIDCDefinition getIDCDefinition(String name, String namespace) Implements com. Convenience method. Returns a top-level model group definition.
| |
| getIDCDefinition | back to summary |
|---|---|
| public XSIDCDefinition getIDCDefinition(String name, String namespace, String loc) Convenience method. Returns a top-level model group definition.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Implements com. The number of | |
| getModelGroupDefinition | back to summary |
|---|---|
| public XSModelGroupDefinition getModelGroupDefinition(String name, String namespace) Implements com. Convenience method. Returns a top-level model group definition.
| |
| getModelGroupDefinition | back to summary |
|---|---|
| public XSModelGroupDefinition getModelGroupDefinition(String name, String namespace, String loc) Convenience method. Returns a top-level model group definition.
| |
| getNamespaceItems | back to summary |
|---|---|
| public XSNamespaceItemList getNamespaceItems() Implements com. A set of namespace schema information information items (of type
| |
| getNamespaces | back to summary |
|---|---|
| public StringList getNamespaces() Implements com. Convenience method. Returns a list of all namespaces that belong to this schema.
| |
| getNotationDeclaration | back to summary |
|---|---|
| public XSNotationDeclaration getNotationDeclaration(String name, String namespace) Implements com. Doc from com. Convenience method. Returns a top-level notation declaration. | |
| getNotationDeclaration | back to summary |
|---|---|
| public XSNotationDeclaration getNotationDeclaration(String name, String namespace, String loc) | |
| getSubstitutionGroup | back to summary |
|---|---|
| public XSObjectList getSubstitutionGroup(XSElementDeclaration head) Implements com. Convenience method. Returns a list containing the members of the
substitution group for the given
| |
| getTypeDefinition | back to summary |
|---|---|
| public XSTypeDefinition getTypeDefinition(String name, String namespace) Implements com. Convenience method. Returns a top-level simple or complex type definition.
| |
| getTypeDefinition | back to summary |
|---|---|
| public XSTypeDefinition getTypeDefinition(String name, String namespace, String loc) Convenience method. Returns a top-level simple or complex type definition.
| |
| hasIDConstraints | back to summary |
|---|---|
| public boolean hasIDConstraints() Revisit to expose identity constraints from XSModel. For now, we only expose whether there are any IDCs. We also need to add these methods to the public XSModel interface. | |
| item | back to summary |
|---|---|
| public XSNamespaceItem item(int index) Implements com. Returns the
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides java. Implements java. Doc from java. Returns an iterator over the elements in this list in proper sequence. | |
| listIterator | back to summary |
|---|---|
| public ListIterator Overrides java. Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper sequence). | |
| listIterator | back to summary |
|---|---|
| public ListIterator Overrides java. Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper
sequence), starting at the specified position in the list.
The specified index indicates the first element that would be
returned by an initial call to | |
| listIterator0 | back to summary |
|---|---|
| private ListIterator | |
| null2EmptyString | back to summary |
|---|---|
| private static final String null2EmptyString(String str) | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than | |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array even if this list is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs. | |
| toArray | back to summary |
|---|---|
| public Object[] toArray(Object[] a) Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. If the list fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this list. If the list fits in the specified array with room to spare (i.e.,
the array has more elements than the list), the element in the array
immediately following the end of the list is set to Like the Suppose
Note that toArray(new Object[0]) is identical in function to
toArray().
| |
| toArray0 | back to summary |
|---|---|
| private void toArray0(Object[] a) | |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(XSNamespaceItem o)
Implements java. Inserts the specified element into the list (optional operation). |
| public boolean | hasNext()
Implements java. Returns |
| public boolean | hasPrevious()
Implements java. Returns |
| public XSNamespaceItem | next()
Implements java. Returns the next element in the list and advances the cursor position. |
| public int | nextIndex()
Implements java. Returns the index of the element that would be returned by a
subsequent call to |
| public XSNamespaceItem | previous()
Implements java. Returns the previous element in the list and moves the cursor position backwards. |
| public int | previousIndex()
Implements java. Returns the index of the element that would be returned by a
subsequent call to |
| public void | remove()
Implements java. Removes from the list the last element that was returned by |
| public void | set(XSNamespaceItem o)
Implements java. Replaces the last element returned by |
| index | back to summary |
|---|---|
| private int index | |
| XSNamespaceItemListIterator | back to summary |
|---|---|
| public XSNamespaceItemListIterator(int index) | |
| add | back to summary |
|---|---|
| public void add(XSNamespaceItem o) Implements java. Doc from java. Inserts the specified element into the list (optional operation).
The element is inserted immediately before the element that
would be returned by | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns | |
| hasPrevious | back to summary |
|---|---|
| public boolean hasPrevious() Implements java. Doc from java. Returns | |
| next | back to summary |
|---|---|
| public XSNamespaceItem next() Implements java. Doc from java. Returns the next element in the list and advances the cursor position.
This method may be called repeatedly to iterate through the list,
or intermixed with calls to | |
| nextIndex | back to summary |
|---|---|
| public int nextIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to | |
| previous | back to summary |
|---|---|
| public XSNamespaceItem previous() Implements java. Doc from java. Returns the previous element in the list and moves the cursor
position backwards. This method may be called repeatedly to
iterate through the list backwards, or intermixed with calls to
| |
| previousIndex | back to summary |
|---|---|
| public int previousIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to | |
| remove | back to summary |
|---|---|
| public void remove() Implements java. Doc from java. Removes from the list the last element that was returned by | |
| set | back to summary |
|---|---|
| public void set(XSNamespaceItem o) Implements java. Doc from java. Replaces the last element returned by | |