net.shibboleth.metadata
Class AssertSupport

java.lang.Object
  extended by net.shibboleth.metadata.AssertSupport

public final class AssertSupport
extends Object

Helper class that offers additional assertion checks.


Constructor Summary
private AssertSupport()
          Constructor.
 
Method Summary
static void assertValidComponentInfo(net.shibboleth.metadata.Item<?> metadataElement, int expectedComponentInfos, Class<? extends net.shibboleth.utilities.java.support.component.Component> expectedComponentType, String expectedComponentId)
          Checks that the given metadata element contains ComponentInfo information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertSupport

private AssertSupport()
Constructor.

Method Detail

assertValidComponentInfo

public static void assertValidComponentInfo(net.shibboleth.metadata.Item<?> metadataElement,
                                            int expectedComponentInfos,
                                            Class<? extends net.shibboleth.utilities.java.support.component.Component> expectedComponentType,
                                            String expectedComponentId)
Checks that the given metadata element contains ComponentInfo information.

Parameters:
metadataElement - element to check, never null
expectedComponentInfos - number of ComponentInfos expected on the element, must be greater than 0
expectedComponentType - type of Component that created that ComponentInfo, never null
expectedComponentId - ID of the Component that created that ComponentInfo, never null


Copyright © 1999-2012. All Rights Reserved.