org.opensaml.saml2.core.validator
Class NameIDSchemaValidator

java.lang.Object
  extended by org.opensaml.saml2.core.validator.NameIDSchemaValidator
All Implemented Interfaces:
Validator<NameID>

public class NameIDSchemaValidator
extends java.lang.Object
implements Validator<NameID>

Checks NameID for Schema compliance.


Constructor Summary
NameIDSchemaValidator()
          Constructor
 
Method Summary
 void validate(NameID nameID)
          Checks to see if a XMLObject is valid.
protected  void validateName(NameID nameID)
          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

NameIDSchemaValidator

public NameIDSchemaValidator()
Constructor

Method Detail

validate

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

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

validateName

protected void validateName(NameID nameID)
                     throws ValidationException
Checks that Name is present.

Parameters:
nameID -
Throws:
ValidationException