Java Doc for ErrorMap.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » core » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » org.kuali.core.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.kuali.core.util.ErrorMap

ErrorMap
public class ErrorMap implements Map,Serializable(Code)
Holds errors due to validation. Keys of map represent property paths, and value is a TypedArrayList that contains resource string keys (to retrieve the error message).




Method Summary
public  voidaddToErrorPath(String parentName)
     Adds a string prefix to the error path.
public  voidclear()
     Clears the messages list.
public  voidclearErrorPath()
     Clears the errorPath.
public  booleancontainsKey(Object key)
    
public  booleancontainsKeyMatchingPattern(String pattern)
    
public  booleancontainsMessageKey(String messageKey)
    
public  booleancontainsValue(Object value)
    
public  intcountFieldMessages(String fieldName)
    
public  SetentrySet()
    
public  booleanequals(Object obj)
    
public  booleanfieldHasMessage(String fieldName, String errorKey)
    
public  Objectget(Object key)
    
public  intgetErrorCount()
    
public  ListgetErrorPath()
     This method returns the list that holds the error path values.
public  StringgetKeyPath(String propertyName, boolean prependFullErrorPath)
     This is what's prepended to the beginning of the key.
public  TypedArrayListgetMessages(String path)
    
public  ListgetPropertiesWithErrors()
    
public  inthashCode()
     Returns the size, since that meets with the requirements of the hashCode contract, and since I don't expect ErrorMap to be used as the key in a Map.
public  booleanisEmpty()
    
public  SetkeySet()
    
public  Objectput(Object key, Object value)
    
public  voidputAll(Map arg0)
    
public  TypedArrayListputError(String propertyName, String errorKey, String... errorParameters)
     Adds an error to the map under the given propertyName and adds an array of message parameters.
public  TypedArrayListputErrorWithoutFullErrorPath(String propertyName, String errorKey, String... errorParameters)
     Adds an error to the map under the given propertyName and adds an array of message parameters.
public  Objectremove(Object key)
    
public  booleanremoveFromErrorPath(String parentName)
     Removes a string prefix from the error path.
public  booleanreplaceError(String propertyName, String targetKey, String replaceKey, String... replaceParameters)
     If any error messages with the key targetKey exist in this ErrorMap for the named property, those ErrorMessages will be replaced with a new ErrorMessage with the given replaceKey and replaceParameters.
public  booleanreplaceErrorWithoutFullErrorPath(String propertyName, String targetKey, String replaceKey, String... replaceParameters)
     If any error messages with the key targetKey exist in this ErrorMap for the named property, those ErrorMessages will be replaced with a new ErrorMessage with the given replaceKey and replaceParameters.
public  intsize()
    
public  StringtoString()
     Renders as a String, to help debug tests.
public  Collectionvalues()
    



Method Detail
addToErrorPath
public void addToErrorPath(String parentName)(Code)
Adds a string prefix to the error path.
Parameters:
  parentName -



clear
public void clear()(Code)
Clears the messages list.



clearErrorPath
public void clearErrorPath()(Code)
Clears the errorPath.



containsKey
public boolean containsKey(Object key)(Code)

See Also:   java.util.Map.containsKey(java.lang.Object)



containsKeyMatchingPattern
public boolean containsKeyMatchingPattern(String pattern)(Code)

Parameters:
  pattern - comma separated list of keys, optionally ending with * wildcard



containsMessageKey
public boolean containsMessageKey(String messageKey)(Code)
true if the given messageKey is associated with some property in this ErrorMap



containsValue
public boolean containsValue(Object value)(Code)
Prevent people from directly accessing the values, since the input parameter isn't strongly-enough typed
Parameters:
  value - boolean



countFieldMessages
public int countFieldMessages(String fieldName)(Code)
Returns the number of messages for the given field
Parameters:
  fieldName - int



entrySet
public Set entrySet()(Code)

See Also:   java.util.Map.entrySet



equals
public boolean equals(Object obj)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)



fieldHasMessage
public boolean fieldHasMessage(String fieldName, String errorKey)(Code)
Returns true if the named field has a message with the given errorKey
Parameters:
  errorKey -
Parameters:
  fieldName - boolean



get
public Object get(Object key)(Code)

See Also:   java.util.Map.get(java.lang.Object)



getErrorCount
public int getErrorCount()(Code)
Counts the total number of error messages in the map returns an int for the total number of errors



getErrorPath
public List getErrorPath()(Code)
This method returns the list that holds the error path values. List



getKeyPath
public String getKeyPath(String propertyName, boolean prependFullErrorPath)(Code)
This is what's prepended to the beginning of the key. This is built by iterating over all of the entries in the errorPath list and concatenating them together witha "." String Returns the keyPath.
Parameters:
  propertyName -
Parameters:
  prependFullErrorPath -



getMessages
public TypedArrayList getMessages(String path)(Code)

Parameters:
  path - Returns a List of ErrorMessages for the given path



getPropertiesWithErrors
public List getPropertiesWithErrors()(Code)
List of the property names that have errors.



hashCode
public int hashCode()(Code)
Returns the size, since that meets with the requirements of the hashCode contract, and since I don't expect ErrorMap to be used as the key in a Map.
See Also:   java.lang.Object.hashCode



isEmpty
public boolean isEmpty()(Code)

See Also:   java.util.Map.isEmpty



keySet
public Set keySet()(Code)

See Also:   java.util.Map.keySet



put
public Object put(Object key, Object value)(Code)
Prevent people from adding arbitrary objects to the messages Map
Parameters:
  key -
Parameters:
  value - Object



putAll
public void putAll(Map arg0)(Code)
Prevent people from adding arbitrary objects to the messages Map
Parameters:
  arg0 -



putError
public TypedArrayList putError(String propertyName, String errorKey, String... errorParameters)(Code)
Adds an error to the map under the given propertyName and adds an array of message parameters. This will fully prepend the error key with any value in the errorPath list. This should be used when you do not want to add the error with the prepend pre-built error path.
Parameters:
  propertyName - name of the property to add error under
Parameters:
  errorKey - resource key used to retrieve the error text from the error message resource bundle
Parameters:
  errorParameters - zero or more string parameters for the displayed error message TypedArrayList



putErrorWithoutFullErrorPath
public TypedArrayList putErrorWithoutFullErrorPath(String propertyName, String errorKey, String... errorParameters)(Code)
Adds an error to the map under the given propertyName and adds an array of message parameters. This will fully prepend the error key with any value in the errorPath list.
Parameters:
  propertyName - name of the property to add error under
Parameters:
  errorKey - resource key used to retrieve the error text from the error message resource bundle
Parameters:
  errorParameters - zero or more string parameters for the displayed error message TypedArrayList



remove
public Object remove(Object key)(Code)

See Also:   java.util.Map.remove(java.lang.Object)



removeFromErrorPath
public boolean removeFromErrorPath(String parentName)(Code)
Removes a string prefix from the error path.
Parameters:
  parentName - boolean Returns true if the parentName existed, false otherwise.



replaceError
public boolean replaceError(String propertyName, String targetKey, String replaceKey, String... replaceParameters)(Code)
If any error messages with the key targetKey exist in this ErrorMap for the named property, those ErrorMessages will be replaced with a new ErrorMessage with the given replaceKey and replaceParameters.
Parameters:
  propertyName - name of the property where existing error will be replaced
Parameters:
  targetKey - error key of message to be replaced
Parameters:
  replaceParameters - zero or more string parameters for the replacement error message true if the replacement occurred



replaceErrorWithoutFullErrorPath
public boolean replaceErrorWithoutFullErrorPath(String propertyName, String targetKey, String replaceKey, String... replaceParameters)(Code)
If any error messages with the key targetKey exist in this ErrorMap for the named property, those ErrorMessages will be replaced with a new ErrorMessage with the given replaceKey and replaceParameters. The targetKey and replaceKey will be prepended with the current errorPath, if any.
Parameters:
  propertyName - name of the property where existing error will be replaced
Parameters:
  targetKey - error key of message to be replaced
Parameters:
  replaceParameters - zero or more string parameters for the replacement error message true if the replacement occurred



size
public int size()(Code)

See Also:   java.util.Map.size



toString
public String toString()(Code)
Renders as a String, to help debug tests. a String, to help debug tests.



values
public Collection values()(Code)
Prevent people from directly accessing the values, since the input parameter isn't strongly-enough typed Collection



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.