|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.BaseStage<ItemType>
net.shibboleth.metadata.pipeline.BaseIteratingStage<DomElementItem>
net.shibboleth.metadata.dom.XMLSchemaValidationStage
@ThreadSafe public class XMLSchemaValidationStage
A pipeline stage that XML schema validates the elements within the DomElementItem collection.
This stage requires the following properties be set prior to initialization:
schemaResourcesisElementRequiredToBeSchemaValid() and an Element is found to
be invalid than an ErrorStatus object is set on the element. If the Element is not required to be valid and
an Element is found to be invalid than an WarningStatus is set on the Element.
| Field Summary | |
|---|---|
private boolean |
elementRequiredToBeSchemaValid
Whether Elements are required to be schema valid. |
private Logger |
log
Class logger. |
private List<net.shibboleth.utilities.java.support.resource.Resource> |
schemaResources
Collection of schema resources. |
private Schema |
validationSchema
Schema used to validate Elements. |
| Constructor Summary | |
|---|---|
XMLSchemaValidationStage()
|
|
| Method Summary | |
|---|---|
protected void |
doDestroy()
|
protected boolean |
doExecute(DomElementItem item)
Processes a given Item. |
protected void |
doInitialize()
|
List<net.shibboleth.utilities.java.support.resource.Resource> |
getSchemaResources()
Gets an unmodifiable list of schema resources against which Elements are validated. |
boolean |
isElementRequiredToBeSchemaValid()
Gets whether Elements are required to be schema valid. |
void |
setElementRequiredToBeSchemaValid(boolean isRequired)
Sets whether Elements are required to be schema valid. |
void |
setSchemaResources(List<net.shibboleth.utilities.java.support.resource.Resource> resources)
Sets the schema resources against which Elements are validated. |
| Methods inherited from class net.shibboleth.metadata.pipeline.BaseIteratingStage |
|---|
doExecute |
| Methods inherited from class net.shibboleth.metadata.pipeline.BaseStage |
|---|
execute, setId |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent |
|---|
getId |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent |
|---|
destroy, initialize, isDestroyed, isInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent |
|---|
destroy, isDestroyed |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiableComponent |
|---|
getId |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent |
|---|
initialize, isInitialized |
| Field Detail |
|---|
private final Logger log
private List<net.shibboleth.utilities.java.support.resource.Resource> schemaResources
private boolean elementRequiredToBeSchemaValid
true
private Schema validationSchema
| Constructor Detail |
|---|
public XMLSchemaValidationStage()
| Method Detail |
|---|
@Nonnull @NonnullElements @Unmodifiable public List<net.shibboleth.utilities.java.support.resource.Resource> getSchemaResources()
public void setSchemaResources(@Nullable@NullableElements
List<net.shibboleth.utilities.java.support.resource.Resource> resources)
resources - schema resources against which Elements are validatedpublic boolean isElementRequiredToBeSchemaValid()
public void setElementRequiredToBeSchemaValid(boolean isRequired)
isRequired - whether Elements are required to be schema valid
protected boolean doExecute(@Nonnull
DomElementItem item)
throws StageProcessingException
doExecute in class BaseIteratingStage<DomElementItem>item - Item on which to operate
StageProcessingException - thrown if there is a problem with the stage processingprotected void doDestroy()
doDestroy in class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
protected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||