private void debugAttributesDefined(Appendable appendable, int level) { AttributeDefinitionManager.getStaticAttributes(attributesDefined).stream().filter(att -> !getLocalTypeOptional( att.getNameSimple()).isPresent()).forEach(att -> { try { pad(appendable, level + 1).append("att ").append(suppressPackage(att.getName())).append(':').append( suppressPackage(att.getSuperType().getName())).append(att.isSelfReference() ? " SELF" : "") .append('\n'); } catch (IOException ex) { LOGGER.log(Level.SEVERE, ex.getMessage(), ex); } }); }
private void debugAttributesDefined(Appendable appendable, int level) { attributesDefined.getAttributes().stream().filter(att -> !getLocalTypeOptional(att.getNameSimple()) .isPresent()).forEach(att -> { try { pad(appendable, level + 1).append("att ").append(suppressPackage(att.getName())) .append(':').append(suppressPackage(att.getSuperType().getName())).append( att.isSelfReference() ? " SELF" : "").append('\n'); } catch (IOException ex) { LOGGER.log(Level.SEVERE, ex.getMessage(), ex); } }); }
@Override void debug(Appendable appendable, int level) { try { pad(appendable, level); debugTypeHeader(appendable); debugAttributes(appendable); appendable.append("\n"); if (this instanceof STypeSimple && asAtrProvider().getProvider() != null) { pad(appendable, level + 2).append("selection of ").append(asAtrProvider().getProvider().toString()) .append("\n"); } debugAttributesDefined(appendable, level); super.debug(appendable, level + 1); } catch (IOException ex) { LOGGER.log(Level.SEVERE, ex.getMessage(), ex); } }
@Override void debug(Appendable appendable, int level) { try { pad(appendable, level); debugTypeHeader(appendable); debugAttributes(appendable); appendable.append('\n'); if (this instanceof STypeSimple && asAtrProvider().getProvider() != null) { pad(appendable, level + 2).append("selection of ").append(asAtrProvider().getProvider().toString()) .append('\n'); } debugAttributesDefined(appendable, level); super.debug(appendable, level + 1); } catch (IOException ex) { LOGGER.log(Level.SEVERE, ex.getMessage(), ex); } }