jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xs/XSNamespaceItem.java
changeset 27111 7a491d709b83
parent 25868 686eef1e7a79
equal deleted inserted replaced
26996:a137992d750c 27111:7a491d709b83
     1 /*
     1 /*
     2  * reserved comment block
     2  * reserved comment block
     3  * DO NOT REMOVE OR ALTER!
     3  * DO NOT REMOVE OR ALTER!
     4  */
     4  */
     5 /*
     5 /*
     6  * Copyright 2003,2004 The Apache Software Foundation.
     6  * Licensed to the Apache Software Foundation (ASF) under one or more
     7  *
     7  * contributor license agreements.  See the NOTICE file distributed with
     8  * Licensed under the Apache License, Version 2.0 (the "License");
     8  * this work for additional information regarding copyright ownership.
     9  * you may not use this file except in compliance with the License.
     9  * The ASF licenses this file to You under the Apache License, Version 2.0
    10  * You may obtain a copy of the License at
    10  * (the "License"); you may not use this file except in compliance with
       
    11  * the License.  You may obtain a copy of the License at
    11  *
    12  *
    12  *      http://www.apache.org/licenses/LICENSE-2.0
    13  *      http://www.apache.org/licenses/LICENSE-2.0
    13  *
    14  *
    14  * Unless required by applicable law or agreed to in writing, software
    15  * Unless required by applicable law or agreed to in writing, software
    15  * distributed under the License is distributed on an "AS IS" BASIS,
    16  * distributed under the License is distributed on an "AS IS" BASIS,
    31      */
    32      */
    32     public String getSchemaNamespace();
    33     public String getSchemaNamespace();
    33 
    34 
    34     /**
    35     /**
    35      * [schema components]: a list of top-level components, i.e. element
    36      * [schema components]: a list of top-level components, i.e. element
    36      * declarations, attribute declarations, etc.
    37      * declarations, attribute declarations, etc. Identity-constraint
       
    38      * definitions are also considered top-level.
       
    39      *
    37      * @param objectType The type of the declaration, i.e.
    40      * @param objectType The type of the declaration, i.e.
    38      *   <code>ELEMENT_DECLARATION</code>. Note that
    41      *   <code>ELEMENT_DECLARATION</code>. Note that
    39      *   <code>XSTypeDefinition.SIMPLE_TYPE</code> and
    42      *   <code>XSTypeDefinition.SIMPLE_TYPE</code> and
    40      *   <code>XSTypeDefinition.COMPLEX_TYPE</code> can also be used as the
    43      *   <code>XSTypeDefinition.COMPLEX_TYPE</code> can also be used as the
    41      *   <code>objectType</code> to retrieve only complex types or simple
    44      *   <code>objectType</code> to retrieve only complex types or simple
   100      *   a declaration does not exist.
   103      *   a declaration does not exist.
   101      */
   104      */
   102     public XSNotationDeclaration getNotationDeclaration(String name);
   105     public XSNotationDeclaration getNotationDeclaration(String name);
   103 
   106 
   104     /**
   107     /**
       
   108      * Convenience method. Returns an identity-constraint definition.
       
   109      * @param name The name of the definition.
       
   110      * @return An identity-constraint definition or <code>null</code> if such
       
   111      *   a declaration does not exist.
       
   112      */
       
   113     public XSIDCDefinition getIDCDefinition(String name);
       
   114 
       
   115     /**
   105      * [document location] - a list of location URIs for the documents that
   116      * [document location] - a list of location URIs for the documents that
   106      * contributed to the <code>XSModel</code>.
   117      * contributed to the <code>XSModel</code>.
   107      */
   118      */
   108     public StringList getDocumentLocations();
   119     public StringList getDocumentLocations();
   109 
   120