< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/ElementPSVImpl.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 


  30 import com.sun.org.apache.xerces.internal.xs.XSConstants;
  31 import com.sun.org.apache.xerces.internal.xs.XSElementDeclaration;
  32 import com.sun.org.apache.xerces.internal.xs.XSModel;
  33 import com.sun.org.apache.xerces.internal.xs.XSNotationDeclaration;
  34 import com.sun.org.apache.xerces.internal.xs.XSSimpleTypeDefinition;
  35 import com.sun.org.apache.xerces.internal.xs.XSTypeDefinition;
  36 import com.sun.org.apache.xerces.internal.xs.XSValue;
  37 
  38 /**
  39  * Element PSV infoset augmentations implementation.
  40  * The following information will be available at the startElement call:
  41  * name, namespace, type, notation, validation context
  42  *
  43  * The following information will be available at the endElement call:
  44  * nil, specified, normalized value, member type, validity, error codes,
  45  * default
  46  *
  47  * @xerces.internal
  48  *
  49  * @author Elena Litani IBM

  50  */
  51 public class ElementPSVImpl implements ElementPSVI {
  52 
  53     /** element declaration */
  54     protected XSElementDeclaration fDeclaration = null;
  55 
  56     /** type of element, could be xsi:type */
  57     protected XSTypeDefinition fTypeDecl = null;
  58 
  59     /** true if clause 3.2 of Element Locally Valid (Element) (3.3.4)
  60       * is satisfied, otherwise false
  61       */
  62     protected boolean fNil = false;
  63 
  64     /** true if the element value was provided by the schema; false otherwise.
  65      */
  66     protected boolean fSpecified = false;
  67 
  68     /** Schema value */
  69     protected ValidatedInfo fValue = new ValidatedInfo();


   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 


  29 import com.sun.org.apache.xerces.internal.xs.XSConstants;
  30 import com.sun.org.apache.xerces.internal.xs.XSElementDeclaration;
  31 import com.sun.org.apache.xerces.internal.xs.XSModel;
  32 import com.sun.org.apache.xerces.internal.xs.XSNotationDeclaration;
  33 import com.sun.org.apache.xerces.internal.xs.XSSimpleTypeDefinition;
  34 import com.sun.org.apache.xerces.internal.xs.XSTypeDefinition;
  35 import com.sun.org.apache.xerces.internal.xs.XSValue;
  36 
  37 /**
  38  * Element PSV infoset augmentations implementation.
  39  * The following information will be available at the startElement call:
  40  * name, namespace, type, notation, validation context
  41  *
  42  * The following information will be available at the endElement call:
  43  * nil, specified, normalized value, member type, validity, error codes,
  44  * default
  45  *
  46  * @xerces.internal
  47  *
  48  * @author Elena Litani IBM
  49  * @LastModified: Nov 2017
  50  */
  51 public class ElementPSVImpl implements ElementPSVI {
  52 
  53     /** element declaration */
  54     protected XSElementDeclaration fDeclaration = null;
  55 
  56     /** type of element, could be xsi:type */
  57     protected XSTypeDefinition fTypeDecl = null;
  58 
  59     /** true if clause 3.2 of Element Locally Valid (Element) (3.3.4)
  60       * is satisfied, otherwise false
  61       */
  62     protected boolean fNil = false;
  63 
  64     /** true if the element value was provided by the schema; false otherwise.
  65      */
  66     protected boolean fSpecified = false;
  67 
  68     /** Schema value */
  69     protected ValidatedInfo fValue = new ValidatedInfo();


< prev index next >