/** * Sets the name which this element declaration refers to * * @param referenceName the name of the element definition that this definition references **/ public void setReferenceName(String referenceName) { if ((referenceName == null) || (ValidationUtils.isQName(referenceName))) { _elementRefName = referenceName; } else { String err = "error: '" + referenceName + "' is not a valid QName."; throw new IllegalArgumentException(err); } } // -- setReference
/** * Sets the name which this element declaration refers to * @param referenceName the name of the element definition that this * definition references **/ public void setReferenceName(String referenceName) { if ((referenceName == null) || (ValidationUtils.isQName(referenceName))) { _elementRefName = referenceName; } else { String err = "error: '" + referenceName + "' is not a valid QName."; throw new IllegalArgumentException(err); } } //-- setReference
if (!ValidationUtils.isQName(value)) { String err = "Name '" + value + "' is not a valid QName."; throw new ValidationException(err);
if (!ValidationUtils.isQName(value)) { String err = "Name '" + value + "' is not a valid QName."; throw new ValidationException(err);