public boolean isDerivedFrom(XSType t) { XSType x = this; while(true) { if(t==x) return true; XSType s = x.getBaseType(); if(s==x) return false; x = s; } }
public boolean isDerivedFrom(XSType t) { XSType x = this; while(true) { if(t==x) return true; XSType s = x.getBaseType(); if(s==x) return false; x = s; } }
public boolean isDerivedFrom(XSType t) { XSType x = this; while(true) { if(t==x) return true; XSType s = x.getBaseType(); if(s==x) return false; x = s; } }
public boolean isDerivedFrom(XSType t) { XSType x = this; while(true) { if(t==x) return true; XSType s = x.getBaseType(); if(s==x) return false; x = s; } }
public boolean isDerivedFrom(XSType t) { XSType x = this; while(true) { if(t==x) return true; XSType s = x.getBaseType(); if(s==x) return false; x = s; } }
public boolean isDerivedFrom(XSType t) { XSType x = this; while(true) { if(t==x) return true; XSType s = x.getBaseType(); if(s==x) return false; x = s; } }
public boolean isDerivedFrom(XSType t) { XSType x = this; while(true) { if(t==x) return true; XSType s = x.getBaseType(); if(s==x) return false; x = s; } }
public boolean isDerivedFrom(XSType t) { XSType x = this; while(true) { if(t==x) return true; XSType s = x.getBaseType(); if(s==x) return false; x = s; } }
public boolean isDerivedFrom(XSType t) { XSType x = this; while(true) { if(t==x) return true; XSType s = x.getBaseType(); if(s==x) return false; x = s; } }
public boolean isDerivedFrom(XSType t) { XSType x = this; while(true) { if(t==x) return true; XSType s = x.getBaseType(); if(s==x) return false; x = s; } }
private String getDefaultNamespace(XSType xsType) { Element annoElement = SchemaProcessorUtil.getAnnotationElement(xsType.getAnnotation(), A_DEFAULT_NAMESPACE); if (annoElement != null) { return annoElement.getTextContent(); } if (xsType.getBaseType() != null && !xsType.getBaseType().equals(xsType)) { return getDefaultNamespace(xsType.getBaseType()); } return null; }
@NotNull private List<String> getIgnoredNamespaces(XSType xsType) { List<String> rv = new ArrayList<>(); List<Element> annoElements = SchemaProcessorUtil.getAnnotationElements(xsType.getAnnotation(), A_IGNORED_NAMESPACE); for (Element annoElement : annoElements) { rv.add(annoElement.getTextContent()); } if (xsType.getBaseType() != null && !xsType.getBaseType().equals(xsType)) { rv.addAll(getIgnoredNamespaces(xsType.getBaseType())); } return rv; }
private static XSType[] listDirectSubstitutables( XSType _this ) { ArrayList r = new ArrayList(); // TODO: handle @block Iterator itr = ((SchemaImpl)_this.getOwnerSchema()).parent.iterateTypes(); while( itr.hasNext() ) { XSType t = (XSType)itr.next(); if( t.getBaseType()==_this ) r.add(t); } return (XSType[]) r.toArray(new XSType[r.size()]); }
private static XSType[] listDirectSubstitutables( XSType _this ) { ArrayList r = new ArrayList(); // TODO: handle @block Iterator itr = ((SchemaImpl)_this.getOwnerSchema()).parent.iterateTypes(); while( itr.hasNext() ) { XSType t = (XSType)itr.next(); if( t.getBaseType()==_this ) r.add(t); } return (XSType[]) r.toArray(new XSType[r.size()]); }
private static XSType[] listDirectSubstitutables( XSType _this ) { ArrayList r = new ArrayList(); // TODO: handle @block Iterator itr = ((SchemaImpl)_this.getOwnerSchema()).parent.iterateTypes(); while( itr.hasNext() ) { XSType t = (XSType)itr.next(); if( t.getBaseType()==_this ) r.add(t); } return (XSType[]) r.toArray(new XSType[r.size()]); }
private static XSType[] listDirectSubstitutables( XSType _this ) { ArrayList r = new ArrayList(); // TODO: handle @block Iterator itr = ((SchemaImpl)_this.getOwnerSchema()).parent.iterateTypes(); while( itr.hasNext() ) { XSType t = (XSType)itr.next(); if( t.getBaseType()==_this ) r.add(t); } return (XSType[]) r.toArray(new XSType[r.size()]); }
private QName determineSupertype(XSType type) { XSType baseType = type.getBaseType(); if (baseType == null) { return null; } if (baseType.getName().equals("anyType")) { return null; } return new QName(baseType.getTargetNamespace(), baseType.getName()); }
public boolean contains(XSType type) { if( typeSet.contains(type) ) { return true; } else { XSType baseType = type.getBaseType(); if( baseType == null ) { return false; } else { // climb the super type hierarchy return contains(baseType); } } }
public boolean contains(XSType type) { if( typeSet.contains(type) ) { return true; } else { XSType baseType = type.getBaseType(); if( baseType == null ) { return false; } else { // climb the super type hierarchy return contains(baseType); } } }
private void processTermElement(JFieldVar fieldVar, XSElementDecl element, List<FacetCustomization> customizations) { XSType elementType = element.getType(); if (elementType.isComplexType()) { validAnnotate(fieldVar); if (!element.isNillable()) notNullAnnotate(fieldVar); if (elementType.getBaseType().isSimpleType()) processSimpleType(elementType.getBaseType().asSimpleType(), fieldVar, customizations); } else processSimpleType(elementType.asSimpleType(), fieldVar, customizations); }