/** * Returns true if property is mandatory. * * @return true if property is mandatory. */ @Override public boolean isMandatory() { return getMinOccurs() > 0; }
/** * Returns true if property is optional. * * @return true if property is optional. */ @Override public boolean isOptional() { return getMinOccurs() == 0; }
private void debugMultiplicity(StringBuilder sb) { sb.append("["); sb.append(getMinOccurs()); sb.append(","); sb.append(getMaxOccurs()); sb.append("]"); }