1 16 17 package org.apache.xerces.dom; 18 19 import java.io.IOException ; 20 import java.io.NotSerializableException ; 21 import java.io.ObjectInputStream ; 22 import java.io.ObjectOutputStream ; 23 24 import org.apache.xerces.xs.ElementPSVI; 25 import org.apache.xerces.xs.*; 26 27 36 public class PSVIElementNSImpl extends ElementNSImpl implements ElementPSVI { 37 38 39 static final long serialVersionUID = 6815489624636016068L; 40 41 44 public PSVIElementNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, 45 String qualifiedName, String localName) { 46 super(ownerDocument, namespaceURI, qualifiedName, localName); 47 } 48 49 52 public PSVIElementNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, 53 String qualifiedName) { 54 super(ownerDocument, namespaceURI, qualifiedName); 55 } 56 57 58 protected XSElementDeclaration fDeclaration = null; 59 60 61 protected XSTypeDefinition fTypeDecl = null; 62 63 66 protected boolean fNil = false; 67 68 70 protected boolean fSpecified = true; 71 72 73 protected String fNormalizedValue = null; 74 75 76 protected Object fActualValue = null; 77 78 79 protected short fActualValueType = XSConstants.UNAVAILABLE_DT; 80 81 82 protected ShortList fItemValueTypes = null; 83 84 85 protected XSNotationDeclaration fNotation = null; 86 87 88 protected XSSimpleTypeDefinition fMemberType = null; 89 90 91 protected short fValidationAttempted = ElementPSVI.VALIDATION_NONE; 92 93 94 protected short fValidity = ElementPSVI.VALIDITY_NOTKNOWN; 95 96 97 protected StringList fErrorCodes = null; 98 99 100 protected String fValidationContext = null; 101 102 103 protected XSModel fSchemaInformation = null; 104 105 109 115 public String getSchemaDefault() { 116 return fDeclaration == null ? null : fDeclaration.getConstraintValue(); 117 } 118 119 126 public String getSchemaNormalizedValue() { 127 return fNormalizedValue; 128 } 129 130 135 public boolean getIsSchemaSpecified() { 136 return fSpecified; 137 } 138 139 145 public short getValidationAttempted() { 146 return fValidationAttempted; 147 } 148 149 156 public short getValidity() { 157 return fValidity; 158 } 159 160 166 public StringList getErrorCodes() { 167 return fErrorCodes; 168 } 169 170 171 public String getValidationContext() { 173 return fValidationContext; 174 } 175 176 181 public boolean getNil() { 182 return fNil; 183 } 184 185 190 public XSNotationDeclaration getNotation() { 191 return fNotation; 192 } 193 194 199 public XSTypeDefinition getTypeDefinition() { 200 return fTypeDecl; 201 } 202 203 212 public XSSimpleTypeDefinition getMemberTypeDefinition() { 213 return fMemberType; 214 } 215 216 222 public XSElementDeclaration getElementDeclaration() { 223 return fDeclaration; 224 } 225 226 232 public XSModel getSchemaInformation() { 233 return fSchemaInformation; 234 } 235 236 241 public void setPSVI(ElementPSVI elem) { 242 this.fDeclaration = elem.getElementDeclaration(); 243 this.fNotation = elem.getNotation(); 244 this.fValidationContext = elem.getValidationContext(); 245 this.fTypeDecl = elem.getTypeDefinition(); 246 this.fSchemaInformation = elem.getSchemaInformation(); 247 this.fValidity = elem.getValidity(); 248 this.fValidationAttempted = elem.getValidationAttempted(); 249 this.fErrorCodes = elem.getErrorCodes(); 250 this.fNormalizedValue = elem.getSchemaNormalizedValue(); 251 this.fActualValue = elem.getActualNormalizedValue(); 252 this.fActualValueType = elem.getActualNormalizedValueType(); 253 this.fItemValueTypes = elem.getItemValueTypes(); 254 this.fMemberType = elem.getMemberTypeDefinition(); 255 this.fSpecified = elem.getIsSchemaSpecified(); 256 } 257 258 261 public Object getActualNormalizedValue() { 262 return this.fActualValue; 263 } 264 265 268 public short getActualNormalizedValueType() { 269 return this.fActualValueType; 270 } 271 272 275 public ShortList getItemValueTypes() { 276 return this.fItemValueTypes; 277 } 278 279 282 private void writeObject(ObjectOutputStream out) 283 throws IOException { 284 throw new NotSerializableException (getClass().getName()); 285 } 286 287 private void readObject(ObjectInputStream in) 288 throws IOException , ClassNotFoundException { 289 throw new NotSerializableException (getClass().getName()); 290 } 291 } 292 | Popular Tags |