org.opensaml.saml2.metadata.validator
Class ServiceNameSchemaValidator

java.lang.Object
  extended by org.opensaml.saml2.metadata.validator.ServiceNameSchemaValidator
All Implemented Interfaces:
Validator<ServiceName>

public class ServiceNameSchemaValidator
extends java.lang.Object
implements Validator<ServiceName>

Checks ServiceName for Schema compliance.


Constructor Summary
ServiceNameSchemaValidator()
          Constructor
 
Method Summary
 void validate(ServiceName serviceName)
          Checks to see if a XMLObject is valid.
protected  void validateName(ServiceName serviceName)
          Checks that Name is present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceNameSchemaValidator

public ServiceNameSchemaValidator()
Constructor

Method Detail

validate

public void validate(ServiceName serviceName)
              throws ValidationException
Checks to see if a XMLObject is valid.

Specified by:
validate in interface Validator<ServiceName>
Parameters:
serviceName - the XMLObject to validate
Throws:
ValidationException - thrown if the element is not valid

validateName

protected void validateName(ServiceName serviceName)
                     throws ValidationException
Checks that Name is present.

Parameters:
serviceName -
Throws:
ValidationException