1 57 58 package com.sun.org.apache.xerces.internal.dom; 59 60 import java.io.IOException ; 61 import java.io.NotSerializableException ; 62 import java.io.ObjectInputStream ; 63 import java.io.ObjectOutputStream ; 64 65 import com.sun.org.apache.xerces.internal.xs.ElementPSVI; 66 import com.sun.org.apache.xerces.internal.xs.*; 67 68 75 public class PSVIElementNSImpl extends ElementNSImpl implements ElementPSVI { 76 77 78 static final long serialVersionUID = 6815489624636016068L; 79 80 83 public PSVIElementNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, 84 String qualifiedName, String localName) { 85 super(ownerDocument, namespaceURI, qualifiedName, localName); 86 } 87 88 91 public PSVIElementNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, 92 String qualifiedName) { 93 super(ownerDocument, namespaceURI, qualifiedName); 94 } 95 96 97 protected XSElementDeclaration fDeclaration = null; 98 99 100 protected XSTypeDefinition fTypeDecl = null; 101 102 105 protected boolean fNil = false; 106 107 109 protected boolean fSpecified = true; 110 111 112 protected String fNormalizedValue = null; 113 114 115 protected Object fActualValue = null; 116 117 118 protected short fActualValueType = XSConstants.UNAVAILABLE_DT; 119 120 121 protected ShortList fItemValueTypes = null; 122 123 124 protected XSNotationDeclaration fNotation = null; 125 126 127 protected XSSimpleTypeDefinition fMemberType = null; 128 129 130 protected short fValidationAttempted = ElementPSVI.VALIDATION_NONE; 131 132 133 protected short fValidity = ElementPSVI.VALIDITY_NOTKNOWN; 134 135 136 protected StringList fErrorCodes = null; 137 138 139 protected String fValidationContext = null; 140 141 142 protected XSModel fSchemaInformation = null; 143 144 148 154 public String getSchemaDefault() { 155 return fDeclaration == null ? null : fDeclaration.getConstraintValue(); 156 } 157 158 165 public String getSchemaNormalizedValue() { 166 return fNormalizedValue; 167 } 168 169 174 public boolean getIsSchemaSpecified() { 175 return fSpecified; 176 } 177 178 184 public short getValidationAttempted() { 185 return fValidationAttempted; 186 } 187 188 195 public short getValidity() { 196 return fValidity; 197 } 198 199 205 public StringList getErrorCodes() { 206 return fErrorCodes; 207 } 208 209 210 public String getValidationContext() { 212 return fValidationContext; 213 } 214 215 220 public boolean getNil() { 221 return fNil; 222 } 223 224 229 public XSNotationDeclaration getNotation() { 230 return fNotation; 231 } 232 233 238 public XSTypeDefinition getTypeDefinition() { 239 return fTypeDecl; 240 } 241 242 251 public XSSimpleTypeDefinition getMemberTypeDefinition() { 252 return fMemberType; 253 } 254 255 261 public XSElementDeclaration getElementDeclaration() { 262 return fDeclaration; 263 } 264 265 271 public XSModel getSchemaInformation() { 272 return fSchemaInformation; 273 } 274 275 280 public void setPSVI(ElementPSVI elem) { 281 this.fDeclaration = elem.getElementDeclaration(); 282 this.fNotation = elem.getNotation(); 283 this.fValidationContext = elem.getValidationContext(); 284 this.fTypeDecl = elem.getTypeDefinition(); 285 this.fSchemaInformation = elem.getSchemaInformation(); 286 this.fValidity = elem.getValidity(); 287 this.fValidationAttempted = elem.getValidationAttempted(); 288 this.fErrorCodes = elem.getErrorCodes(); 289 this.fNormalizedValue = elem.getSchemaNormalizedValue(); 290 this.fActualValue = elem.getActualNormalizedValue(); 291 this.fActualValueType = elem.getActualNormalizedValueType(); 292 this.fItemValueTypes = elem.getItemValueTypes(); 293 this.fMemberType = elem.getMemberTypeDefinition(); 294 this.fSpecified = elem.getIsSchemaSpecified(); 295 } 296 297 300 public Object getActualNormalizedValue() { 301 return this.fActualValue; 302 } 303 304 307 public short getActualNormalizedValueType() { 308 return this.fActualValueType; 309 } 310 311 314 public ShortList getItemValueTypes() { 315 return this.fItemValueTypes; 316 } 317 318 321 private void writeObject(ObjectOutputStream out) 322 throws IOException { 323 throw new NotSerializableException (getClass().getName()); 324 } 325 326 private void readObject(ObjectInputStream in) 327 throws IOException , ClassNotFoundException { 328 throw new NotSerializableException (getClass().getName()); 329 } 330 } 331 | Popular Tags |