public Type getBaseType() { XSDatatype base = dt.getBaseType(); if(base==null) return getType(complexUrType); else return getType(base); } public Object getCore() { return dt; }
public Type getBaseType() { XSDatatype base = dt.getBaseType(); if(base==null) return getType(complexUrType); else return getType(base); } public Object getCore() { return dt; }
public Type getBaseType() { XSDatatype base = dt.getBaseType(); if(base==null) return getType(complexUrType); else return getType(base); } public Object getCore() { return dt; }
public Type getBaseType() { XSDatatype base = dt.getBaseType(); if(base==null) return getType(complexUrType); else return getType(base); } public Object getCore() { return dt; }
public XSDatatype getAncestorBuiltinType() { XSDatatype dt = this; while( !XMLSCHEMA_NSURI.equals(dt.getNamespaceUri()) ) dt = dt.getBaseType(); return dt; }
public XSDatatype getAncestorBuiltinType() { XSDatatype dt = this; while( !XMLSCHEMA_NSURI.equals(dt.getNamespaceUri()) ) dt = dt.getBaseType(); return dt; }
public XSDatatype getAncestorBuiltinType() { XSDatatype dt = this; while( !XMLSCHEMA_NSURI.equals(dt.getNamespaceUri()) ) dt = dt.getBaseType(); return dt; }
public XSDatatype getAncestorBuiltinType() { XSDatatype dt = this; while( !XMLSCHEMA_NSURI.equals(dt.getNamespaceUri()) ) dt = dt.getBaseType(); return dt; }
public static Integer getLength(DatabindableDatatype type) { Validate.notNull(type); if (type instanceof LengthFacet) { return new Integer(((LengthFacet) type).length); } else if (type instanceof XSDatatype) { XSDatatype xsDatatype = (XSDatatype) type; if (xsDatatype.getBaseType() != null) { return getLength(xsDatatype.getBaseType()); } else { return null; } } else { return null; } } }
public XSDatatype getAncestorBuiltinType() { XSDatatype dt = this; while( !XMLSCHEMA_NSURI.equals(dt.getNamespaceUri()) ) dt = dt.getBaseType(); return dt; }
public static Integer getMinLength(DatabindableDatatype type) { Validate.notNull(type); if (type instanceof MinLengthFacet) { return new Integer(((MinLengthFacet) type).minLength); } else if (type instanceof XSDatatype) { XSDatatype xsDatatype = (XSDatatype) type; if (xsDatatype.getBaseType() != null) { return getMinLength(xsDatatype.getBaseType()); } else { return null; } } else { return null; } }
public static Integer getMaxLength(DatabindableDatatype type) { Validate.notNull(type); if (type instanceof MaxLengthFacet) { return new Integer(((MaxLengthFacet) type).maxLength); } else if (type instanceof XSDatatype) { XSDatatype xsDatatype = (XSDatatype) type; if (xsDatatype.getBaseType() != null) { return getMaxLength(xsDatatype.getBaseType()); } else { return null; } } else { return null; } }
t = t.getBaseType(); XSDatatypeImpl[] memberTypes = ((UnionType)t).memberTypes; for( int i=0; i<memberTypes.length; i++ ) if( base==derived ) return true; derived = derived.getBaseType();
t = t.getBaseType(); XSDatatypeImpl[] memberTypes = ((UnionType)t).memberTypes; for( int i=0; i<memberTypes.length; i++ ) if( base==derived ) return true; derived = derived.getBaseType();
t = t.getBaseType(); XSDatatypeImpl[] memberTypes = ((UnionType)t).memberTypes; for( int i=0; i<memberTypes.length; i++ ) if( base==derived ) return true; derived = derived.getBaseType();
t = t.getBaseType(); XSDatatypeImpl[] memberTypes = ((UnionType)t).memberTypes; for( int i=0; i<memberTypes.length; i++ ) if( base==derived ) return true; derived = derived.getBaseType();
t = t.getBaseType(); XSDatatypeImpl[] memberTypes = ((UnionType)t).memberTypes; for( int i=0; i<memberTypes.length; i++ ) if( base==derived ) return true; derived = derived.getBaseType();
public String getType(Datatype datatype, Datatype originalDatatype) { if (datatype instanceof XSDatatype) { final XSDatatype xsDatatype = (XSDatatype) datatype; final String namespaceUri = xsDatatype.getNamespaceUri(); final String localPart = xsDatatype.getName(); final QName qName = localPart == null ? null : new QName(namespaceUri, localPart); if (datatypeMap.keySet().contains(qName)) { return ((DatatypeResolver) datatypeMap.get(qName)).getType(originalDatatype); } else { // datatype. return getType(xsDatatype.getBaseType(), originalDatatype); } } return null; }
x = x.getBaseType(); continue; x = x.getBaseType(); continue;
x = x.getBaseType(); continue; x = x.getBaseType(); continue;