| 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 Object | get(int
index of the element to return index)Implements abstract java. Implements java. |
| public synchronized XSObjectList | getAnnotations()
Implements org. XSObjectList.
|
| 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 org. |
| 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 org. |
| 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 org. |
| 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 org. |
| 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 org. |
| 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 org. |
| 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 org. XSNamespaceItems in the list.
|
| 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 org. |
| 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 org. XSNamespaceItem), one for each namespace name which
appears as the target namespace of any schema component in the schema
used for that assessment, and one for absent if any schema component
in the schema had no target namespace.
|
| public StringList | Returns: A list of all namespaces that belong to this schema ornull if all components don't have a targetNamespace.Implements org. |
| public XSNotationDeclaration | getNotationDeclaration(String
The name of the declaration. name, String The namespace of the declaration, otherwise
namespace)null.Implements org. |
| 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 org. |
| 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 org. |
| 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 org. indexth item in the collection or
null if index is greater than or equal to
the number of objects in the list.
|
| public Iterator | iterator()
Overrides java. Implements java. |
| public ListIterator | listIterator()
Overrides java. Implements java. |
| public ListIterator | listIterator(int
index of the first element to be returned from the
list iterator (by a call to index)next)Overrides java. Implements java. |
| private ListIterator | |
| private static final String | |
| public int | size()
Implements abstract java. Implements java. |
| public Object[] | toArray()
Overrides java. Implements java. |
| public Object[] | toArray(Object[]
the array into which the elements of this list are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose. a)Overrides java. Implements java. |
| 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 Object 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 org. [annotations]: a set of annotations if it exists, otherwise an empty
| |
| getAttributeDeclaration | back to summary |
|---|---|
| public XSAttributeDeclaration getAttributeDeclaration(String name, String namespace) Implements org. 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 org. 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 org. 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 org. 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 org. 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 org. 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 org. The number of | |
| getModelGroupDefinition | back to summary |
|---|---|
| public XSModelGroupDefinition getModelGroupDefinition(String name, String namespace) Implements org. 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 org. A set of namespace schema information information items (of type
| |
| getNamespaces | back to summary |
|---|---|
| public StringList getNamespaces() Implements org. 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 org. Doc from org. 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 org. 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 org. 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 org. 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(Object
the element to insert o)Implements java. |
| public boolean | hasNext()
Implements java. true if this list iterator has more elements when
traversing the list in the forward direction.
|
| public boolean | hasPrevious()
Implements java. true if this list iterator has more elements when
traversing the list in the reverse direction.
|
| public Object | next()
Implements java. |
| public int | nextIndex()
Implements java. next.
|
| public Object | previous()
Implements java. |
| public int | previousIndex()
Implements java. previous.
|
| public void | remove()
Implements java. next or previous (optional operation).
|
| public void | set(Object
the element with which to replace the last element returned by
o)next or previousImplements java. next or
previous with the specified element (optional operation).
|
| index | back to summary |
|---|---|
| private int index | |
| XSNamespaceItemListIterator | back to summary |
|---|---|
| public XSNamespaceItemListIterator(int index) | |
| add | back to summary |
|---|---|
| public void add(Object 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 Object 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 Object 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(Object o) Implements java. Doc from java. Replaces the last element returned by
| |