1 22 23 package org.xquark.schema.loader; 24 25 import org.xquark.schema.*; 26 import org.xquark.schema.validation.ValidationContextProvider; 27 import org.xquark.schema.validation.ValidationInfo; 28 29 public final class SimpleBaseTypeRef extends Type { 30 private static final String RCSRevision = "$Revision: 1.1 $"; 31 private static final String RCSName = "$Name: $"; 32 33 private ComplexType type; 34 35 public SimpleBaseTypeRef(ComplexType type) { 36 super(type.getSchema(), null, null); 37 this.type = type; 38 } 39 40 public void accept(SchemaVisitor visitor) throws SchemaException { 41 visitor.visit(this); 42 } 43 44 public int getContentType() { 45 return SchemaConstants.MIXED; 46 } 47 48 public SimpleType getValueType() { 49 return null; 50 } 51 52 public ComplexType getType() { 53 return type; 54 } 55 56 public ValidationInfo validate(String value, boolean normalize, ValidationContextProvider context) 57 throws SchemaException { 58 return null; 59 } 60 61 public ValidationInfo validate(StringBuffer value, boolean normalize, ValidationContextProvider context) 62 throws SchemaException { 63 return null; 64 } 65 } 66 | Popular Tags |