1 22 23 package org.xquark.xpath.datamodel; 24 25 import org.w3c.dom.*; 26 import org.xquark.schema.Declaration; 27 import org.xquark.schema.SimpleType; 28 import org.xquark.schema.Type; 29 import org.xquark.xpath.datamodel.xerces.dom.DocumentImpl; 30 31 public class TypedDocumentImpl extends DocumentImpl implements TypedDocument { 32 private static final String RCSRevision = "$Revision: 1.2 $"; 33 private static final String RCSName = "$Name: $"; 34 35 public TypedDocumentImpl() { 36 super(); 37 } 38 39 public Element createElementNS(String namespaceURI, String qualifiedName) { 52 return new TypedElementImpl(this, namespaceURI, qualifiedName); 53 } 54 55 public Attr createAttributeNS(String namespaceURI, String qualifiedName) { 56 return new TypedAttributeImpl(this, namespaceURI, qualifiedName); 57 } 58 59 public Text createTextNode(String data) { 60 return new TypedValueImpl(this, data); 61 } 62 63 public TypedValue createTypedValue(Object typedValue, SimpleType simpleType) { 64 TypedValue retVal = new TypedValueImpl(this, (simpleType==null)?null:simpleType.toXMLString(typedValue,null)); 65 retVal.setType(simpleType); 66 retVal.setTypedValue(typedValue); 67 68 return retVal; 69 } 70 71 74 public void setType(Type type) { 75 } 76 77 80 public Type getType() { 81 return null; 82 } 83 84 87 public void setTypedValue(Object typedValue) { 88 } 89 90 93 public Object getTypedValue() { 94 return null; 95 } 96 97 100 public Object getExtendedTypedValue() { 101 return null; 102 } 103 104 107 public void setDeclaration(Declaration elementDeclaration) { 108 } 109 110 113 public Declaration getDeclaration() { 114 return null; 115 } 116 117 120 public void setNormalizedStringValue(String normalizedStringValue) { 121 } 122 123 126 public String getNormalizedStringValue() { 127 return null; 128 } 129 130 } 163 | Popular Tags |