jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xs/XSFacet.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,
    35      * A value of this facet.
    36      * A value of this facet.
    36      */
    37      */
    37     public String getLexicalFacetValue();
    38     public String getLexicalFacetValue();
    38 
    39 
    39     /**
    40     /**
       
    41      * If this facet is length, minLength, maxLength, totalDigits, or
       
    42      * fractionDigits, and if the value can fit in "int", then return the value
       
    43      * of the facet as an int. If the value can't fit, return -1. Use
       
    44      * getActualFacetValue() to get the BigInteger representation. For all other
       
    45      * facets, return 0.
       
    46      */
       
    47     public int getIntFacetValue();
       
    48 
       
    49     /**
       
    50      * If this facet is minInclusive, maxInclusive, minExclusive, or
       
    51      * maxExclusive, then return the actual value of the facet. If this facet
       
    52      * is length, minLength, maxLength, totalDigits, or fractionDigits, then
       
    53      * return a BigInteger representation of the value. If this facet is
       
    54      * whiteSpace, then return the String representation of the facet.
       
    55      */
       
    56     public Object getActualFacetValue();
       
    57 
       
    58     /**
    40      * [Facets]: check whether a facet is fixed.
    59      * [Facets]: check whether a facet is fixed.
    41      */
    60      */
    42     public boolean getFixed();
    61     public boolean getFixed();
    43 
    62 
    44     /**
    63     /**