src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/dv/XSFacets.java
author joehw
Wed, 18 Oct 2017 13:25:49 -0700
changeset 47359 e1a6c0168741
parent 47216 71c04702a3d5
child 48409 5ab69533994b
permissions -rw-r--r--
8181150: Fix lint warnings in JAXP repo: rawtypes and unchecked Reviewed-by: lancea, rriggs, mullan
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     1
/*
47359
e1a6c0168741 8181150: Fix lint warnings in JAXP repo: rawtypes and unchecked
joehw
parents: 47216
diff changeset
     2
 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
e1a6c0168741 8181150: Fix lint warnings in JAXP repo: rawtypes and unchecked
joehw
parents: 47216
diff changeset
     3
 * @LastModified: Oct 2017
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     4
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
     5
/*
44797
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 25868
diff changeset
     6
 * Licensed to the Apache Software Foundation (ASF) under one or more
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 25868
diff changeset
     7
 * contributor license agreements.  See the NOTICE file distributed with
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 25868
diff changeset
     8
 * this work for additional information regarding copyright ownership.
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 25868
diff changeset
     9
 * The ASF licenses this file to You under the Apache License, Version 2.0
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 25868
diff changeset
    10
 * (the "License"); you may not use this file except in compliance with
8b3b3b911b8a 8162572: Update License Header for all JAXP sources
joehw
parents: 25868
diff changeset
    11
 * the License.  You may obtain a copy of the License at
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    12
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    13
 *      http://www.apache.org/licenses/LICENSE-2.0
7f561c08de6b Initial load
duke
parents:
diff changeset
    14
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    15
 * Unless required by applicable law or agreed to in writing, software
7f561c08de6b Initial load
duke
parents:
diff changeset
    16
 * distributed under the License is distributed on an "AS IS" BASIS,
7f561c08de6b Initial load
duke
parents:
diff changeset
    17
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
7f561c08de6b Initial load
duke
parents:
diff changeset
    18
 * See the License for the specific language governing permissions and
7f561c08de6b Initial load
duke
parents:
diff changeset
    19
 * limitations under the License.
7f561c08de6b Initial load
duke
parents:
diff changeset
    20
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    21
7f561c08de6b Initial load
duke
parents:
diff changeset
    22
package com.sun.org.apache.xerces.internal.impl.dv;
7f561c08de6b Initial load
duke
parents:
diff changeset
    23
47359
e1a6c0168741 8181150: Fix lint warnings in JAXP repo: rawtypes and unchecked
joehw
parents: 47216
diff changeset
    24
import com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl;
e1a6c0168741 8181150: Fix lint warnings in JAXP repo: rawtypes and unchecked
joehw
parents: 47216
diff changeset
    25
import com.sun.org.apache.xerces.internal.xni.NamespaceContext;
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    26
import com.sun.org.apache.xerces.internal.xs.XSAnnotation;
7f561c08de6b Initial load
duke
parents:
diff changeset
    27
import com.sun.org.apache.xerces.internal.xs.XSObjectList;
47359
e1a6c0168741 8181150: Fix lint warnings in JAXP repo: rawtypes and unchecked
joehw
parents: 47216
diff changeset
    28
import java.util.List;
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    29
7f561c08de6b Initial load
duke
parents:
diff changeset
    30
/**
7f561c08de6b Initial load
duke
parents:
diff changeset
    31
 * The class used to pass all facets to {@link XSSimpleType#applyFacets}.
7f561c08de6b Initial load
duke
parents:
diff changeset
    32
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    33
 * @xerces.internal
7f561c08de6b Initial load
duke
parents:
diff changeset
    34
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    35
 * @author Sandy Gao, IBM
7f561c08de6b Initial load
duke
parents:
diff changeset
    36
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    37
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    38
public class XSFacets {
7f561c08de6b Initial load
duke
parents:
diff changeset
    39
7f561c08de6b Initial load
duke
parents:
diff changeset
    40
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    41
     * value of length facet.
7f561c08de6b Initial load
duke
parents:
diff changeset
    42
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    43
    public int length;
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
7f561c08de6b Initial load
duke
parents:
diff changeset
    45
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    46
     * value of minLength facet.
7f561c08de6b Initial load
duke
parents:
diff changeset
    47
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    48
    public int minLength;
7f561c08de6b Initial load
duke
parents:
diff changeset
    49
7f561c08de6b Initial load
duke
parents:
diff changeset
    50
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    51
     * value of maxLength facet.
7f561c08de6b Initial load
duke
parents:
diff changeset
    52
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    53
    public int maxLength;
7f561c08de6b Initial load
duke
parents:
diff changeset
    54
7f561c08de6b Initial load
duke
parents:
diff changeset
    55
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    56
     * value of whiteSpace facet.
7f561c08de6b Initial load
duke
parents:
diff changeset
    57
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    58
    public short whiteSpace;
7f561c08de6b Initial load
duke
parents:
diff changeset
    59
7f561c08de6b Initial load
duke
parents:
diff changeset
    60
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    61
     * value of totalDigits facet.
7f561c08de6b Initial load
duke
parents:
diff changeset
    62
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    63
    public int totalDigits;
7f561c08de6b Initial load
duke
parents:
diff changeset
    64
7f561c08de6b Initial load
duke
parents:
diff changeset
    65
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    66
     * value of fractionDigits facet.
7f561c08de6b Initial load
duke
parents:
diff changeset
    67
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    68
    public int fractionDigits;
7f561c08de6b Initial load
duke
parents:
diff changeset
    69
7f561c08de6b Initial load
duke
parents:
diff changeset
    70
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    71
     * string containing value of pattern facet, for multiple patterns values
7f561c08de6b Initial load
duke
parents:
diff changeset
    72
     * are ORed together.
7f561c08de6b Initial load
duke
parents:
diff changeset
    73
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    74
    public String pattern;
7f561c08de6b Initial load
duke
parents:
diff changeset
    75
7f561c08de6b Initial load
duke
parents:
diff changeset
    76
    /**
47359
e1a6c0168741 8181150: Fix lint warnings in JAXP repo: rawtypes and unchecked
joehw
parents: 47216
diff changeset
    77
     * ArrayList containing values of Enumeration facet, as String's.
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    78
     */
47359
e1a6c0168741 8181150: Fix lint warnings in JAXP repo: rawtypes and unchecked
joehw
parents: 47216
diff changeset
    79
    public List<String> enumeration;
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    80
7f561c08de6b Initial load
duke
parents:
diff changeset
    81
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    82
     * An array parallel to "Vector enumeration". It contains namespace context
7f561c08de6b Initial load
duke
parents:
diff changeset
    83
     * of each enumeration value. Elements of this vector are NamespaceContext
7f561c08de6b Initial load
duke
parents:
diff changeset
    84
     * objects.
7f561c08de6b Initial load
duke
parents:
diff changeset
    85
     */
47359
e1a6c0168741 8181150: Fix lint warnings in JAXP repo: rawtypes and unchecked
joehw
parents: 47216
diff changeset
    86
    public List<NamespaceContext> enumNSDecls;
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    87
7f561c08de6b Initial load
duke
parents:
diff changeset
    88
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    89
     * value of maxInclusive facet.
7f561c08de6b Initial load
duke
parents:
diff changeset
    90
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    91
    public String maxInclusive;
7f561c08de6b Initial load
duke
parents:
diff changeset
    92
7f561c08de6b Initial load
duke
parents:
diff changeset
    93
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    94
     * value of maxExclusive facet.
7f561c08de6b Initial load
duke
parents:
diff changeset
    95
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    96
    public String maxExclusive;
7f561c08de6b Initial load
duke
parents:
diff changeset
    97
7f561c08de6b Initial load
duke
parents:
diff changeset
    98
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    99
     * value of minInclusive facet.
7f561c08de6b Initial load
duke
parents:
diff changeset
   100
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   101
    public String minInclusive;
7f561c08de6b Initial load
duke
parents:
diff changeset
   102
7f561c08de6b Initial load
duke
parents:
diff changeset
   103
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   104
     * value of minExclusive facet.
7f561c08de6b Initial load
duke
parents:
diff changeset
   105
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   106
    public String minExclusive;
7f561c08de6b Initial load
duke
parents:
diff changeset
   107
7f561c08de6b Initial load
duke
parents:
diff changeset
   108
7f561c08de6b Initial load
duke
parents:
diff changeset
   109
7f561c08de6b Initial load
duke
parents:
diff changeset
   110
    public XSAnnotation lengthAnnotation;
7f561c08de6b Initial load
duke
parents:
diff changeset
   111
    public XSAnnotation minLengthAnnotation;
7f561c08de6b Initial load
duke
parents:
diff changeset
   112
    public XSAnnotation maxLengthAnnotation;
7f561c08de6b Initial load
duke
parents:
diff changeset
   113
    public XSAnnotation whiteSpaceAnnotation;
7f561c08de6b Initial load
duke
parents:
diff changeset
   114
    public XSAnnotation totalDigitsAnnotation;
7f561c08de6b Initial load
duke
parents:
diff changeset
   115
    public XSAnnotation fractionDigitsAnnotation;
7f561c08de6b Initial load
duke
parents:
diff changeset
   116
    public XSObjectListImpl patternAnnotations;
7f561c08de6b Initial load
duke
parents:
diff changeset
   117
    public XSObjectList enumAnnotations;
7f561c08de6b Initial load
duke
parents:
diff changeset
   118
    public XSAnnotation maxInclusiveAnnotation;
7f561c08de6b Initial load
duke
parents:
diff changeset
   119
    public XSAnnotation maxExclusiveAnnotation;
7f561c08de6b Initial load
duke
parents:
diff changeset
   120
    public XSAnnotation minInclusiveAnnotation;
7f561c08de6b Initial load
duke
parents:
diff changeset
   121
    public XSAnnotation minExclusiveAnnotation;
7f561c08de6b Initial load
duke
parents:
diff changeset
   122
7f561c08de6b Initial load
duke
parents:
diff changeset
   123
    public void reset(){
7f561c08de6b Initial load
duke
parents:
diff changeset
   124
        lengthAnnotation = null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   125
        minLengthAnnotation = null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   126
        maxLengthAnnotation = null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   127
        whiteSpaceAnnotation = null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   128
        totalDigitsAnnotation = null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   129
        fractionDigitsAnnotation = null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   130
        patternAnnotations = null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   131
        enumAnnotations = null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   132
        maxInclusiveAnnotation = null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   133
        maxExclusiveAnnotation = null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   134
        minInclusiveAnnotation = null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   135
        minExclusiveAnnotation = null;
7f561c08de6b Initial load
duke
parents:
diff changeset
   136
    }
7f561c08de6b Initial load
duke
parents:
diff changeset
   137
}