1 package com.sun.tools.xjc.runtime; 2 3 import org.relaxng.datatype.ValidationContext; 4 5 16 public final class ValidationContextAdaptor implements ValidationContext { 17 18 private final UnmarshallingContext core; 19 20 public ValidationContextAdaptor( UnmarshallingContext _context ) { 21 this.core = _context; 22 } 23 24 public String getBaseUri() { 25 return core.getBaseUri(); 26 } 27 28 public boolean isNotation(String notationName) { 29 return core.isNotation(notationName); 30 } 31 32 public boolean isUnparsedEntity(String entityName) { 33 return core.isUnparsedEntity(entityName); 34 } 35 36 public String resolveNamespacePrefix(String prefix) { 37 return core.resolveNamespacePrefix(prefix); 38 } 39 40 } 41 | Popular Tags |