/** * Checks unused customizations on this component * and returns true if this is the first time this * component is checked. */ private boolean check( XSComponent c ) { if( !visitedComponents.add(c) ) return false; // already processed for( BIDeclaration decl : builder.getBindInfo(c).getDecls() ) check(decl, c); checkExpectedContentTypes(c); return true; }
/** * Checks unused customizations on this component * and returns true if this is the first time this * component is checked. */ private boolean check( XSComponent c ) { if( !visitedComponents.add(c) ) return false; // already processed for( BIDeclaration decl : builder.getBindInfo(c).getDecls() ) check(decl, c); checkExpectedContentTypes(c); return true; }
private static BIDeclaration hasAnnotation(XSAnnotation annotation, QName qname) { if (annotation == null) { return null; } Object object = annotation.getAnnotation(); if (!(object instanceof BindInfo)) { return null; } BindInfo info = (BindInfo) object; BIDeclaration[] declarations = info.getDecls(); if (declarations == null) { return null; } for (BIDeclaration declaration : declarations) { if (qname.equals(declaration.getName())) { return declaration; } } return null; }
/** * Checks unused customizations on this component * and returns true if this is the first time this * component is checked. */ private boolean check( XSComponent c ) { if( !visitedComponents.add(c) ) return false; // already processed for( BIDeclaration decl : builder.getBindInfo(c).getDecls() ) check(decl, c); checkExpectedContentTypes(c); return true; }
/** * Checks unused customizations on this component * and returns true if this is the first time this * component is checked. */ private boolean check( XSComponent c ) { if( !visitedComponents.add(c) ) return false; // already processed for( BIDeclaration decl : builder.getBindInfo(c).getDecls() ) check(decl, c); checkExpectedContentTypes(c); return true; }
/** * Checks unused customizations on this component * and returns true if this is the first time this * component is checked. */ private boolean check( XSComponent c ) { if( !visitedComponents.add(c) ) return false; // already processed for( BIDeclaration decl : builder.getBindInfo(c).getDecls() ) check(decl, c); checkExpectedContentTypes(c); return true; }