|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.metadata.pipeline.AbstractComponent
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<org.opensaml.util.resource.Resource> |
schemaResources
Collection of schema resources. |
private Schema |
validationSchema
Schema used to validate Elements. |
| Constructor Summary | |
|---|---|
XMLSchemaValidationStage()
|
|
| Method Summary | |
|---|---|
protected boolean |
doExecute(DomElementItem item)
Processes a given Item. |
protected void |
doInitialize()
Do the initialization of the component. |
List<org.opensaml.util.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<org.opensaml.util.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 |
| Methods inherited from class net.shibboleth.metadata.pipeline.AbstractComponent |
|---|
equals, getId, getInitializationInstant, hashCode, initialize, isInitialized, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.shibboleth.metadata.pipeline.Component |
|---|
getId, getInitializationInstant, initialize, isInitialized |
| Field Detail |
|---|
private final Logger log
private List<org.opensaml.util.resource.Resource> schemaResources
private boolean elementRequiredToBeSchemaValid
true
private Schema validationSchema
| Constructor Detail |
|---|
public XMLSchemaValidationStage()
| Method Detail |
|---|
public List<org.opensaml.util.resource.Resource> getSchemaResources()
public void setSchemaResources(List<org.opensaml.util.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(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 processing
protected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractComponentComponentInitializationException - throw if there is a problem initializing the component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||