jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xs/XSAttributeDeclaration.java
changeset 27111 7a491d709b83
parent 25868 686eef1e7a79
child 45490 dc68478b53b9
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,
    49     public short getConstraintType();
    50     public short getConstraintType();
    50 
    51 
    51     /**
    52     /**
    52      * Value constraint: The constraint value with respect to the [type
    53      * Value constraint: The constraint value with respect to the [type
    53      * definition], otherwise <code>null</code>.
    54      * definition], otherwise <code>null</code>.
       
    55      *
       
    56      * @deprecated Use getValueConstraintValue().getNormalizedValue() instead
    54      */
    57      */
    55     public String getConstraintValue();
    58     public String getConstraintValue();
    56 
    59 
    57     /**
    60     /**
    58      * Value Constraint: Binding specific actual constraint value or
    61      * Value Constraint: Binding specific actual constraint value or
    59      * <code>null</code> if the value is in error or there is no value
    62      * <code>null</code> if the value is in error or there is no value
    60      * constraint.
    63      * constraint.
    61      * @exception XSException
    64      * @exception XSException
    62      *   NOT_SUPPORTED_ERR: Raised if the implementation does not support this
    65      *   NOT_SUPPORTED_ERR: Raised if the implementation does not support this
    63      *   method.
    66      *   method.
       
    67      *
       
    68      *  @deprecated Use getValueConstraintValue().getActualValue() instead
    64      */
    69      */
    65     public Object getActualVC()
    70     public Object getActualVC()
    66                                                         throws XSException;
    71                                                         throws XSException;
    67 
    72 
    68     /**
    73     /**
    76      * <code>itemValueTypes</code>. If the <code>actualValue</code> is
    81      * <code>itemValueTypes</code>. If the <code>actualValue</code> is
    77      * <code>null</code>, this method returns <code>UNAVAILABLE_DT</code>.
    82      * <code>null</code>, this method returns <code>UNAVAILABLE_DT</code>.
    78      * @exception XSException
    83      * @exception XSException
    79      *   NOT_SUPPORTED_ERR: Raised if the implementation does not support this
    84      *   NOT_SUPPORTED_ERR: Raised if the implementation does not support this
    80      *   method.
    85      *   method.
       
    86      *
       
    87      *  @deprecated Use getValueConstraintValue().getActualValueType() instead
    81      */
    88      */
    82     public short getActualVCType()
    89     public short getActualVCType()
    83                                                         throws XSException;
    90                                                         throws XSException;
    84 
    91 
    85     /**
    92     /**
    92      * corresponding memberType kind. For examples, see
    99      * corresponding memberType kind. For examples, see
    93      * <code>ItemPSVI.itemValueTypes</code>.
   100      * <code>ItemPSVI.itemValueTypes</code>.
    94      * @exception XSException
   101      * @exception XSException
    95      *   NOT_SUPPORTED_ERR: Raised if the implementation does not support this
   102      *   NOT_SUPPORTED_ERR: Raised if the implementation does not support this
    96      *   method.
   103      *   method.
       
   104      *
       
   105      *  @deprecated Use getValueConstraintValue().getListValueTypes() instead
    97      */
   106      */
    98     public ShortList getItemValueTypes()
   107     public ShortList getItemValueTypes()
    99                                                         throws XSException;
   108                                                         throws XSException;
       
   109 
       
   110     /**
       
   111      * The actual value of the default or fixed value constraint.
       
   112      */
       
   113     public XSValue getValueConstraintValue();
   100 
   114 
   101     /**
   115     /**
   102      * An annotation if it exists, otherwise <code>null</code>.
   116      * An annotation if it exists, otherwise <code>null</code>.
   103      * If not null then the first [annotation] from the sequence of annotations.
   117      * If not null then the first [annotation] from the sequence of annotations.
   104      */
   118      */