Esri Geoportal Server
1.0

com.esri.gpt.catalog.schema
Class ValidationErrors

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<ValidationError>
              extended by com.esri.gpt.catalog.schema.ValidationErrors
All Implemented Interfaces:
Serializable, Cloneable, Iterable<ValidationError>, Collection<ValidationError>, List<ValidationError>, RandomAccess

public class ValidationErrors
extends ArrayList<ValidationError>

Defines a list of validation errors.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ValidationErrors()
          Default constructor.
 
Method Summary
 boolean add(ValidationError member)
          Adds a member to the collection.
 void addInvalidParameter(Section section, Parameter parameter)
          Adds a validation error with an ValidationError.REASONCODE_ISINVALID reason code.
 void buildMessages(MessageBroker messageBroker, boolean includeXpath)
          Builds validation error messages.
 void buildMessages(MessageBroker messageBroker, List<String> list, boolean includeXpath)
          Builds validation error messages.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

ValidationErrors

public ValidationErrors()
Default constructor.

Method Detail

add

public boolean add(ValidationError member)
Adds a member to the collection.
The member will not be added if it is null.

Specified by:
add in interface Collection<ValidationError>
Specified by:
add in interface List<ValidationError>
Overrides:
add in class ArrayList<ValidationError>
Parameters:
member - the member to add
Returns:
true if the member was added

addInvalidParameter

public void addInvalidParameter(Section section,
                                Parameter parameter)
Adds a validation error with an ValidationError.REASONCODE_ISINVALID reason code.

Parameters:
section - the section containing the invalid parameter
parameter - the invalid parameter

buildMessages

public void buildMessages(MessageBroker messageBroker,
                          boolean includeXpath)
Builds validation error messages.

Parameters:
messageBroker - the message broker
includeXpath - if true, include parameter content xpath selection expressions

buildMessages

public void buildMessages(MessageBroker messageBroker,
                          List<String> list,
                          boolean includeXpath)
Builds validation error messages.

Parameters:
messageBroker - the message broker
includeXpath - if true, include parameter content xpath selection expressions

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class AbstractCollection<ValidationError>
Returns:
the string

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.