< prev index next >

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

Print this page


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Nov 2017
   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.impl.xs;
  23 
  24 import com.sun.org.apache.xerces.internal.impl.dv.ValidatedInfo;
  25 import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl;
  26 import com.sun.org.apache.xerces.internal.xs.AttributePSVI;
  27 import com.sun.org.apache.xerces.internal.xs.ItemPSVI;
  28 import com.sun.org.apache.xerces.internal.xs.ShortList;
  29 import com.sun.org.apache.xerces.internal.xs.StringList;
  30 import com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration;
  31 import com.sun.org.apache.xerces.internal.xs.XSConstants;
  32 import com.sun.org.apache.xerces.internal.xs.XSSimpleTypeDefinition;
  33 import com.sun.org.apache.xerces.internal.xs.XSTypeDefinition;
  34 import com.sun.org.apache.xerces.internal.xs.XSValue;
  35 
  36 /**
  37  * Attribute PSV infoset augmentations implementation.
  38  * The PSVI information for attributes will be available at the startElement call.
  39  *
  40  * @xerces.internal
  41  *
  42  * @author Elena Litani IBM

  43  */
  44 public class AttributePSVImpl implements AttributePSVI {
  45 
  46     /** attribute declaration */
  47     protected XSAttributeDeclaration fDeclaration = null;
  48 
  49     /** type of attribute, simpleType */
  50     protected XSTypeDefinition fTypeDecl = null;
  51 
  52     /** If this attribute was explicitly given a
  53      * value in the original document, this is false; otherwise, it is true */
  54     protected boolean fSpecified = false;
  55 
  56     /** Schema value */
  57     protected ValidatedInfo fValue = new ValidatedInfo();
  58 
  59     /** validation attempted: none, partial, full */
  60     protected short fValidationAttempted = AttributePSVI.VALIDATION_NONE;
  61 
  62     /** validity: valid, invalid, unknown */


   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.impl.xs;
  22 
  23 import com.sun.org.apache.xerces.internal.impl.dv.ValidatedInfo;
  24 import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl;
  25 import com.sun.org.apache.xerces.internal.xs.AttributePSVI;
  26 import com.sun.org.apache.xerces.internal.xs.ItemPSVI;
  27 import com.sun.org.apache.xerces.internal.xs.ShortList;
  28 import com.sun.org.apache.xerces.internal.xs.StringList;
  29 import com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration;
  30 import com.sun.org.apache.xerces.internal.xs.XSConstants;
  31 import com.sun.org.apache.xerces.internal.xs.XSSimpleTypeDefinition;
  32 import com.sun.org.apache.xerces.internal.xs.XSTypeDefinition;
  33 import com.sun.org.apache.xerces.internal.xs.XSValue;
  34 
  35 /**
  36  * Attribute PSV infoset augmentations implementation.
  37  * The PSVI information for attributes will be available at the startElement call.
  38  *
  39  * @xerces.internal
  40  *
  41  * @author Elena Litani IBM
  42  * @LastModified: Nov 2017
  43  */
  44 public class AttributePSVImpl implements AttributePSVI {
  45 
  46     /** attribute declaration */
  47     protected XSAttributeDeclaration fDeclaration = null;
  48 
  49     /** type of attribute, simpleType */
  50     protected XSTypeDefinition fTypeDecl = null;
  51 
  52     /** If this attribute was explicitly given a
  53      * value in the original document, this is false; otherwise, it is true */
  54     protected boolean fSpecified = false;
  55 
  56     /** Schema value */
  57     protected ValidatedInfo fValue = new ValidatedInfo();
  58 
  59     /** validation attempted: none, partial, full */
  60     protected short fValidationAttempted = AttributePSVI.VALIDATION_NONE;
  61 
  62     /** validity: valid, invalid, unknown */


< prev index next >