private String getPath() { if (parent == null) { return "/"; } else if (parent.parent == null) { return '/' + nodeName; } else { return parent.getPath() + '/' + nodeName; } }
private String getPath() { if (parent == null) { return "/"; } else if (parent.parent == null) { return '/' + nodeName; } else { return parent.getPath() + '/' + nodeName; } }
private String getPath() { if (parent == null) { return "/"; } else if (parent.parent == null) { return '/' + nodeName; } else { return parent.getPath() + '/' + nodeName; } }
/** * Throws or logs the specified constraint violation. * * @param code code of this violation * @param message description of the violation * @throws CommitFailedException the constraint violation */ private void constraintViolation(int code, String message) throws CommitFailedException { List<String> nodeTypeNames = effective != null ? effective.getDirectTypeNames() : Collections.emptyList(); callback.onConstraintViolation(getPath(), nodeTypeNames, code, message); }
/** * Throws or logs the specified constraint violation. * * @param code code of this violation * @param message description of the violation * @throws CommitFailedException the constraint violation */ private void constraintViolation(int code, String message) throws CommitFailedException { List<String> nodeTypeNames = effective != null ? effective.getDirectTypeNames() : Collections.emptyList(); callback.onConstraintViolation(getPath(), nodeTypeNames, code, message); }
/** * Throws or logs the specified constraint violation. * * @param code code of this violation * @param message description of the violation * @throws CommitFailedException the constraint violation */ private void constraintViolation(int code, String message) throws CommitFailedException { List<String> nodeTypeNames = effective != null ? effective.getDirectTypeNames() : Collections.emptyList(); callback.onConstraintViolation(getPath(), nodeTypeNames, code, message); }
+ getPath()); } else { constraintViolation(2, "Abstract type " + primary + " used as the primary type");
+ getPath()); } else { constraintViolation(2, "Abstract type " + primary + " used as the primary type");
+ getPath()); } else { constraintViolation(2, "Abstract type " + primary + " used as the primary type");