org.jomc.model
Class ModelObjectValidationReport

Package class diagram package ModelObjectValidationReport
java.lang.Object
  extended by org.jomc.model.ModelObjectValidationReport
All Implemented Interfaces:
Serializable

public class ModelObjectValidationReport
extends Object
implements Serializable

Validation report about a model object.

Version:
$Id: ModelObjectValidationReport.java 891 2009-11-02 03:40:00Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Nested Class Summary
static class ModelObjectValidationReport.Detail
          Report detail.
 
Constructor Summary
ModelObjectValidationReport(javax.xml.bind.JAXBElement modelObject)
          Creates a new ModelObjectValidationReport instance taking a model object.
 
Method Summary
 List<ModelObjectValidationReport.Detail> getDetails()
          Gets all details of the instance.
 List<ModelObjectValidationReport.Detail> getDetails(String identifier)
          Gets all details of the instance matching a given identifier.
 javax.xml.bind.JAXBElement getModelObject()
          Gets the model object of the instance.
 boolean isModelObjectValid()
          Gets a flag indicating if the model object of the instance is considered valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelObjectValidationReport

public ModelObjectValidationReport(javax.xml.bind.JAXBElement modelObject)
Creates a new ModelObjectValidationReport instance taking a model object.

Parameters:
modelObject - The model object of the report.
Method Detail

getModelObject

public javax.xml.bind.JAXBElement getModelObject()
Gets the model object of the instance.

Returns:
The model object of the instance.

getDetails

public List<ModelObjectValidationReport.Detail> getDetails()
Gets all details of the instance.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the object. This is why there is no set method for the details property.

Returns:
All details of the instance.

getDetails

public List<ModelObjectValidationReport.Detail> getDetails(String identifier)
Gets all details of the instance matching a given identifier.

Parameters:
identifier - The identifier of the details to return or null.
Returns:
An unmodifiable list containing all details of the instance matching identifier.

isModelObjectValid

public boolean isModelObjectValid()
Gets a flag indicating if the model object of the instance is considered valid.

Returns:
true if the model object of the instance is considered valid; false if the model object of the instance is considered invalid.


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.