public class AttributeSchemaValidator extends AttributeDesignatorSchemaValidator<Attribute>
Attribute
for Schema compliance.Constructor and Description |
---|
AttributeSchemaValidator() |
Modifier and Type | Method and Description |
---|---|
void |
validate(Attribute attribute)
Checks to see if a XMLObject is valid.
|
protected void |
validateAttributeValue(Attribute attribute)
Validates that the attribute has at least one attribute value.
|
validateName, validateNameSpace
public void validate(Attribute attribute) throws ValidationException
validate
in interface Validator<Attribute>
validate
in class AttributeDesignatorSchemaValidator<Attribute>
attribute
- the XMLObject to validateValidationException
- thrown if the element is not validprotected void validateAttributeValue(Attribute attribute) throws ValidationException
attribute
- attribute to validateValidationException
- thrown if the attribute does not have any valuesCopyright © 2018 JBoss by Red Hat. All rights reserved.