1 22 23 package org.xquark.xpath.datamodel; 24 25 import org.xquark.schema.Declaration; 26 import org.xquark.schema.Type; 27 import org.xquark.xpath.datamodel.xerces.dom.DocumentImpl; 28 import org.xquark.xpath.datamodel.xerces.dom.TextImpl; 29 30 public class TypedValueImpl extends TextImpl implements TypedValue { 31 private static final String RCSRevision = "$Revision: 1.1 $"; 32 private static final String RCSName = "$Name: $"; 33 public Type type = null; 34 public Object typedValue = null; 35 36 public TypedValueImpl(DocumentImpl ownerDocument, String value) { 38 super(ownerDocument, value); 39 } 40 41 public void setType(Type type) { 42 this.type = type; 43 } 44 45 public void setTypedValue(Object typedValue) { 46 this.typedValue = typedValue; 47 } 48 49 public void setDeclaration(Declaration declaration) { 50 } 51 52 public Type getType() { 53 return type; 54 } 55 56 public Object getTypedValue() { 57 return typedValue; 58 } 59 60 public Object getExtendedTypedValue() { 61 return typedValue; 62 } 63 64 public Declaration getDeclaration() { 65 return null; 66 } 67 68 public void setNormalizedStringValue(String normalizedStringValue) { 69 this.setNodeValue(normalizedStringValue); 70 } 71 72 public String getNormalizedStringValue() { 73 return this.getNodeValue(); 74 } 75 } 76 | Popular Tags |