< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xs/XSElementDeclaration.java

Print this page


   1 /*
   2  * reserved comment block
   3  * DO NOT REMOVE OR ALTER!
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  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
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xerces.internal.xs;
  23 


  39     public short getScope();
  40 
  41     /**
  42      * The complex type definition for locally scoped declarations (see
  43      * <code>scope</code>), otherwise <code>null</code> if no such
  44      * definition exists.
  45      */
  46     public XSComplexTypeDefinition getEnclosingCTDefinition();
  47 
  48     /**
  49      * [Value constraint]: one of <code>VC_NONE, VC_DEFAULT, VC_FIXED</code>.
  50      */
  51     public short getConstraintType();
  52 
  53     /**
  54      * [Value constraint]: the constraint value with respect to the [type
  55      * definition], otherwise <code>null</code>.
  56      *
  57      * @deprecated Use getValueConstraintValue().getNormalizedValue() instead
  58      */

  59     public String getConstraintValue();
  60 
  61     /**
  62      * Value Constraint: Binding specific actual constraint value or
  63      * <code>null</code> if the value is in error or there is no value
  64      * constraint.
  65      * @exception XSException
  66      *   NOT_SUPPORTED_ERR: Raised if the implementation does not support this
  67      *   method.
  68      *
  69      * @deprecated Use getValueConstraintValue().getActualValue() instead
  70      */

  71     public Object getActualVC()
  72                                             throws XSException;
  73 
  74     /**
  75      * The actual constraint value built-in datatype, e.g.
  76      * <code>STRING_DT, SHORT_DT</code>. If the type definition of this
  77      * value is a list type definition, this method returns
  78      * <code>LIST_DT</code>. If the type definition of this value is a list
  79      * type definition whose item type is a union type definition, this
  80      * method returns <code>LISTOFUNION_DT</code>. To query the actual
  81      * constraint value of the list or list of union type definitions use
  82      * <code>itemValueTypes</code>. If the <code>actualNormalizedValue</code>
  83      *  is <code>null</code>, this method returns <code>UNAVAILABLE_DT</code>.
  84      * @exception XSException
  85      *   NOT_SUPPORTED_ERR: Raised if the implementation does not support this
  86      *   method.
  87      *
  88      * @deprecated Use getValueConstraintValue().getActualValueType() instead
  89      */

  90     public short getActualVCType()
  91                                             throws XSException;
  92 
  93     /**
  94      * In the case the actual constraint value represents a list, i.e. the
  95      * <code>actualValueType</code> is <code>LIST_DT</code>, the returned
  96      * array consists of one type kind which represents the itemType. If the
  97      * actual constraint value represents a list type definition whose item
  98      * type is a union type definition, i.e. <code>LISTOFUNION_DT</code>,
  99      * for each actual constraint value in the list the array contains the
 100      * corresponding memberType kind. For examples, see
 101      * <code>ItemPSVI.itemValueTypes</code>.
 102      * @exception XSException
 103      *   NOT_SUPPORTED_ERR: Raised if the implementation does not support this
 104      *   method.
 105      *
 106      * @deprecated Use getValueConstraintValue().getListValueTypes() instead
 107      */

 108     public ShortList getItemValueTypes()
 109                                             throws XSException;
 110 
 111     /**
 112      * The actual value of the default or fixed value constraint.
 113      */
 114     public XSValue getValueConstraintValue();
 115 
 116     /**
 117      *  If nillable is true, then an element may also be valid if it carries
 118      * the namespace qualified attribute with local name <code>nil</code>
 119      * from namespace <code>http://www.w3.org/2001/XMLSchema-instance</code>
 120      * and value <code>true</code> (xsi:nil) even if it has no text or
 121      * element content despite a <code>content type</code> which would
 122      * otherwise require content.
 123      */
 124     public boolean getNillable();
 125 
 126     /**
 127      * identity-constraint definitions: a set of constraint definitions if it


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.

   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xerces.internal.xs;
  22 


  38     public short getScope();
  39 
  40     /**
  41      * The complex type definition for locally scoped declarations (see
  42      * <code>scope</code>), otherwise <code>null</code> if no such
  43      * definition exists.
  44      */
  45     public XSComplexTypeDefinition getEnclosingCTDefinition();
  46 
  47     /**
  48      * [Value constraint]: one of <code>VC_NONE, VC_DEFAULT, VC_FIXED</code>.
  49      */
  50     public short getConstraintType();
  51 
  52     /**
  53      * [Value constraint]: the constraint value with respect to the [type
  54      * definition], otherwise <code>null</code>.
  55      *
  56      * @deprecated Use getValueConstraintValue().getNormalizedValue() instead
  57      */
  58     @Deprecated
  59     public String getConstraintValue();
  60 
  61     /**
  62      * Value Constraint: Binding specific actual constraint value or
  63      * <code>null</code> if the value is in error or there is no value
  64      * constraint.
  65      * @exception XSException
  66      *   NOT_SUPPORTED_ERR: Raised if the implementation does not support this
  67      *   method.
  68      *
  69      * @deprecated Use getValueConstraintValue().getActualValue() instead
  70      */
  71     @Deprecated
  72     public Object getActualVC()
  73                                             throws XSException;
  74 
  75     /**
  76      * The actual constraint value built-in datatype, e.g.
  77      * <code>STRING_DT, SHORT_DT</code>. If the type definition of this
  78      * value is a list type definition, this method returns
  79      * <code>LIST_DT</code>. If the type definition of this value is a list
  80      * type definition whose item type is a union type definition, this
  81      * method returns <code>LISTOFUNION_DT</code>. To query the actual
  82      * constraint value of the list or list of union type definitions use
  83      * <code>itemValueTypes</code>. If the <code>actualNormalizedValue</code>
  84      *  is <code>null</code>, this method returns <code>UNAVAILABLE_DT</code>.
  85      * @exception XSException
  86      *   NOT_SUPPORTED_ERR: Raised if the implementation does not support this
  87      *   method.
  88      *
  89      * @deprecated Use getValueConstraintValue().getActualValueType() instead
  90      */
  91     @Deprecated
  92     public short getActualVCType()
  93                                             throws XSException;
  94 
  95     /**
  96      * In the case the actual constraint value represents a list, i.e. the
  97      * <code>actualValueType</code> is <code>LIST_DT</code>, the returned
  98      * array consists of one type kind which represents the itemType. If the
  99      * actual constraint value represents a list type definition whose item
 100      * type is a union type definition, i.e. <code>LISTOFUNION_DT</code>,
 101      * for each actual constraint value in the list the array contains the
 102      * corresponding memberType kind. For examples, see
 103      * <code>ItemPSVI.itemValueTypes</code>.
 104      * @exception XSException
 105      *   NOT_SUPPORTED_ERR: Raised if the implementation does not support this
 106      *   method.
 107      *
 108      * @deprecated Use getValueConstraintValue().getListValueTypes() instead
 109      */
 110     @Deprecated
 111     public ShortList getItemValueTypes()
 112                                             throws XSException;
 113 
 114     /**
 115      * The actual value of the default or fixed value constraint.
 116      */
 117     public XSValue getValueConstraintValue();
 118 
 119     /**
 120      *  If nillable is true, then an element may also be valid if it carries
 121      * the namespace qualified attribute with local name <code>nil</code>
 122      * from namespace <code>http://www.w3.org/2001/XMLSchema-instance</code>
 123      * and value <code>true</code> (xsi:nil) even if it has no text or
 124      * element content despite a <code>content type</code> which would
 125      * otherwise require content.
 126      */
 127     public boolean getNillable();
 128 
 129     /**
 130      * identity-constraint definitions: a set of constraint definitions if it


< prev index next >