286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Copyright 2001, 2002,2004 The Apache Software Foundation.
286N/A *
286N/A * Licensed under the Apache License, Version 2.0 (the "License");
286N/A * you may not use this file except in compliance with the License.
286N/A * You may obtain a copy of the License at
286N/A *
286N/A * http://www.apache.org/licenses/LICENSE-2.0
286N/A *
286N/A * Unless required by applicable law or agreed to in writing, software
286N/A * distributed under the License is distributed on an "AS IS" BASIS,
286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286N/A * See the License for the specific language governing permissions and
286N/A * limitations under the License.
286N/A */
286N/A
286N/Apackage com.sun.org.apache.xerces.internal.impl.dv;
286N/A
286N/Aimport java.util.Vector;
286N/A
286N/Aimport com.sun.org.apache.xerces.internal.xs.XSAnnotation;
286N/Aimport com.sun.org.apache.xerces.internal.xs.XSObjectList;
286N/Aimport com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl;
286N/A
286N/A/**
286N/A * The class used to pass all facets to {@link XSSimpleType#applyFacets}.
286N/A *
286N/A * @xerces.internal
286N/A *
286N/A * @author Sandy Gao, IBM
286N/A *
286N/A */
286N/Apublic class XSFacets {
286N/A
286N/A /**
286N/A * value of length facet.
286N/A */
286N/A public int length;
286N/A
286N/A /**
286N/A * value of minLength facet.
286N/A */
286N/A public int minLength;
286N/A
286N/A /**
286N/A * value of maxLength facet.
286N/A */
286N/A public int maxLength;
286N/A
286N/A /**
286N/A * value of whiteSpace facet.
286N/A */
286N/A public short whiteSpace;
286N/A
286N/A /**
286N/A * value of totalDigits facet.
286N/A */
286N/A public int totalDigits;
286N/A
286N/A /**
286N/A * value of fractionDigits facet.
286N/A */
286N/A public int fractionDigits;
286N/A
286N/A /**
286N/A * string containing value of pattern facet, for multiple patterns values
286N/A * are ORed together.
286N/A */
286N/A public String pattern;
286N/A
286N/A /**
286N/A * Vector containing values of Enumeration facet, as String's.
286N/A */
286N/A public Vector enumeration;
286N/A
286N/A /**
286N/A * An array parallel to "Vector enumeration". It contains namespace context
286N/A * of each enumeration value. Elements of this vector are NamespaceContext
286N/A * objects.
286N/A */
286N/A public Vector enumNSDecls;
286N/A
286N/A /**
286N/A * value of maxInclusive facet.
286N/A */
286N/A public String maxInclusive;
286N/A
286N/A /**
286N/A * value of maxExclusive facet.
286N/A */
286N/A public String maxExclusive;
286N/A
286N/A /**
286N/A * value of minInclusive facet.
286N/A */
286N/A public String minInclusive;
286N/A
286N/A /**
286N/A * value of minExclusive facet.
286N/A */
286N/A public String minExclusive;
286N/A
286N/A
286N/A
286N/A public XSAnnotation lengthAnnotation;
286N/A public XSAnnotation minLengthAnnotation;
286N/A public XSAnnotation maxLengthAnnotation;
286N/A public XSAnnotation whiteSpaceAnnotation;
286N/A public XSAnnotation totalDigitsAnnotation;
286N/A public XSAnnotation fractionDigitsAnnotation;
286N/A public XSObjectListImpl patternAnnotations;
286N/A public XSObjectList enumAnnotations;
286N/A public XSAnnotation maxInclusiveAnnotation;
286N/A public XSAnnotation maxExclusiveAnnotation;
286N/A public XSAnnotation minInclusiveAnnotation;
286N/A public XSAnnotation minExclusiveAnnotation;
286N/A
286N/A public void reset(){
286N/A lengthAnnotation = null;
286N/A minLengthAnnotation = null;
286N/A maxLengthAnnotation = null;
286N/A whiteSpaceAnnotation = null;
286N/A totalDigitsAnnotation = null;
286N/A fractionDigitsAnnotation = null;
286N/A patternAnnotations = null;
286N/A enumAnnotations = null;
286N/A maxInclusiveAnnotation = null;
286N/A maxExclusiveAnnotation = null;
286N/A minInclusiveAnnotation = null;
286N/A minExclusiveAnnotation = null;
286N/A }
286N/A}