public class EntityDescriptorSpecValidator extends Object implements Validator<EntityDescriptor>
EntityDescriptor
for Spec compliance.Constructor and Description |
---|
EntityDescriptorSpecValidator()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
validate(EntityDescriptor entityDescriptor)
Checks to see if a XMLObject is valid.
|
protected void |
validateRoot(EntityDescriptor entityDescriptor)
Checks that at least either Valid Until or Cache Duration is present when Entity Descriptor is root element.
|
public void validate(EntityDescriptor entityDescriptor) throws ValidationException
validate
in interface Validator<EntityDescriptor>
entityDescriptor
- the XMLObject to validateValidationException
- thrown if the element is not validprotected void validateRoot(EntityDescriptor entityDescriptor) throws ValidationException
entityDescriptor
- ValidationException
Copyright © 2018 JBoss by Red Hat. All rights reserved.