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.AttributePSVI; 66 import com.sun.org.apache.xerces.internal.xs.*; 67 68 75 public class PSVIAttrNSImpl extends AttrNSImpl implements AttributePSVI { 76 77 78 static final long serialVersionUID = -3241738699421018889L; 79 80 83 public PSVIAttrNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, 84 String qualifiedName, String localName) { 85 super(ownerDocument, namespaceURI, qualifiedName, localName); 86 } 87 88 91 public PSVIAttrNSImpl(CoreDocumentImpl ownerDocument, String namespaceURI, 92 String qualifiedName) { 93 super(ownerDocument, namespaceURI, qualifiedName); 94 } 95 96 97 protected XSAttributeDeclaration fDeclaration = null; 98 99 100 protected XSTypeDefinition fTypeDecl = null; 101 102 104 protected boolean fSpecified = true; 105 106 107 protected String fNormalizedValue = null; 108 109 110 protected Object fActualValue = null; 111 112 113 protected short fActualValueType = XSConstants.UNAVAILABLE_DT; 114 115 116 protected ShortList fItemValueTypes = null; 117 118 119 protected XSSimpleTypeDefinition fMemberType = null; 120 121 122 protected short fValidationAttempted = AttributePSVI.VALIDATION_NONE; 123 124 125 protected short fValidity = AttributePSVI.VALIDITY_NOTKNOWN; 126 127 128 protected StringList fErrorCodes = null; 129 130 131 protected String fValidationContext = null; 132 133 137 143 public String getSchemaDefault() { 144 return fDeclaration == null ? null : fDeclaration.getConstraintValue(); 145 } 146 147 154 public String getSchemaNormalizedValue() { 155 return fNormalizedValue; 156 } 157 158 163 public boolean getIsSchemaSpecified() { 164 return fSpecified; 165 } 166 167 168 174 public short getValidationAttempted() { 175 return fValidationAttempted; 176 } 177 178 185 public short getValidity() { 186 return fValidity; 187 } 188 189 195 public StringList getErrorCodes() { 196 return fErrorCodes; 197 } 198 199 public String getValidationContext() { 201 return fValidationContext; 202 } 203 204 209 public XSTypeDefinition getTypeDefinition() { 210 return fTypeDecl; 211 } 212 213 222 public XSSimpleTypeDefinition getMemberTypeDefinition() { 223 return fMemberType; 224 } 225 226 232 public XSAttributeDeclaration getAttributeDeclaration() { 233 return fDeclaration; 234 } 235 236 241 public void setPSVI(AttributePSVI attr) { 242 this.fDeclaration = attr.getAttributeDeclaration(); 243 this.fValidationContext = attr.getValidationContext(); 244 this.fValidity = attr.getValidity(); 245 this.fValidationAttempted = attr.getValidationAttempted(); 246 this.fErrorCodes = attr.getErrorCodes(); 247 this.fNormalizedValue = attr.getSchemaNormalizedValue(); 248 this.fActualValue = attr.getActualNormalizedValue(); 249 this.fActualValueType = attr.getActualNormalizedValueType(); 250 this.fItemValueTypes = attr.getItemValueTypes(); 251 this.fTypeDecl = attr.getTypeDefinition(); 252 this.fMemberType = attr.getMemberTypeDefinition(); 253 this.fSpecified = attr.getIsSchemaSpecified(); 254 } 255 256 259 public Object getActualNormalizedValue() { 260 return this.fActualValue; 261 } 262 263 266 public short getActualNormalizedValueType() { 267 return this.fActualValueType; 268 } 269 270 273 public ShortList getItemValueTypes() { 274 return this.fItemValueTypes; 275 } 276 277 280 private void writeObject(ObjectOutputStream out) 281 throws IOException { 282 throw new NotSerializableException (getClass().getName()); 283 } 284 285 private void readObject(ObjectInputStream in) 286 throws IOException , ClassNotFoundException { 287 throw new NotSerializableException (getClass().getName()); 288 } 289 } 290 | Popular Tags |