Java Doc for JSFUtils.java in  » UML » AndroMDA-3.2 » org » andromda » cartridges » jsf » 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 » UML » AndroMDA 3.2 » org.andromda.cartridges.jsf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.andromda.cartridges.jsf.JSFUtils

JSFUtils
public class JSFUtils (Code)
Utilties for use within the JSF cartridge.
author:
   Chad Brandon




Method Summary
public static  StringconstructDummyArrayDeclaration(String name, int count)
     Constructs a string representing an array initialization in Java.
Parameters:
  name - the name to give the array.
Parameters:
  count - the number of items to give the array.
public static  StringgetDateFormat(String format)
    
public static  java.lang.StringgetEqual(ModelElementFacade element)
     Retrieves the "equal" value from the given element (if one is present).
Parameters:
  element - the element from which to retrieve the equal value.
public static  StringgetFormat(ModelElementFacade element, ClassifierFacade type, String defaultDateFormat, String defaultTimeFormat)
     Gets the format string for the given element.
Parameters:
  element - the element for which to retrieve the format.
Parameters:
  type - the type of the element.
public static  StringgetInputFormat(ModelElementFacade element)
     Retrieves the input format (if one is defined), for the given element.
Parameters:
  element - the model element for which to retrieve the input format.
public static  StringgetMaxLengthValue(String format)
    
public static  StringgetMinLengthValue(String format)
    
public static  StringgetPatternValue(String format)
    
public static  StringgetRangeEnd(String format)
    
public static  StringgetRangeStart(String format)
    
public static  StringgetToken(String string, int index, int limit)
    
public static  java.lang.StringgetValidWhen(ModelElementFacade element)
     Retrieves the "validwhen" value from the given element (if one is present).
Parameters:
  element - the element from which to retrieve the validwhen value.
public static  java.util.CollectiongetValidatorArgs(ModelElementFacade element, java.lang.String validatorType)
     Gets the validator args for the element and the given validatorType.
Parameters:
  element - the element for which to retrieve the arguments.
Parameters:
  validatorType - the validator type name.
public static  java.util.CollectiongetValidatorTypes(ModelElementFacade element, ClassifierFacade type)
     Retrieves the validator types as a collection from the given element (if any can be retrieved).
Parameters:
  element - the element from which to retrieve the types.
Parameters:
  type - the type of the element.
public static  java.util.CollectiongetValidatorVars(ModelElementFacade element, ClassifierFacade type)
     Gets the validator variables for the given element (if they can be retrieved).
Parameters:
  element - the element from which to retrieve the variables
Parameters:
  type - the type of the element.
public  StringgetViewExtension()
     Gets the extension for the current view type.
public  StringgetViewType()
     Gets the current view type.
public static  booleanisByte(ClassifierFacade type)
    
public static  booleanisCreditCardFormat(String format)
     Indicates if the given format is a creditcard format.
public static  booleanisDate(ClassifierFacade type)
    
public static  booleanisDouble(ClassifierFacade type)
    
public static  booleanisEmailFormat(String format)
     Indicates if the given format is an email format.
public static  booleanisEqualFormat(String format)
     Indicates if the given format is an equal format.
public static  booleanisFloat(ClassifierFacade type)
    
public static  booleanisInteger(ClassifierFacade type)
    
public static  booleanisLong(ClassifierFacade type)
    
public static  booleanisMaxLengthFormat(String format)
     Indicates if the given format is a maxlength format.
public static  booleanisMinLengthFormat(String format)
     Indicates if the given format is a minlength format.
public static  booleanisPatternFormat(String format)
     Indicates if the given format is a pattern format.
public static  booleanisRangeFormat(String format)
     Indicates if the given format is a range format.
public static  booleanisReadOnly(ModelElementFacade element)
     Indicates if the given element is read-only or not.
Parameters:
  element - the element to check.
public static  booleanisShort(ClassifierFacade type)
    
public static  booleanisStrictDateFormat(String format)
    
public static  booleanisStrictDateFormat(ModelElementFacade element)
     Indicates whether or not the format for this element is a strict date format.
public static  booleanisString(ClassifierFacade type)
    
public static  booleanisTime(ClassifierFacade type)
    
public static  booleanisUrl(ClassifierFacade type)
    
public static  ListparseValidatorArgs(String validatorTaggedValue)
     Reads the validator arguments from the the given tagged value.
public static  StringparseValidatorName(String validatorTaggedValue)
     Parses the validator name for a tagged value.
public static  ListparseValidatorVars(String validatorTaggedValue)
     Reads the validator variable names from the the given tagged value.
public  voidsetStrictDateTimeFormat(boolean strictDateTimeFormat)
     Sets whether or not the dattern patterns should be treated as strict.
public  voidsetViewType(String viewType)
     Sets the view type to use.
public static  StringtoWebResourceName(String string)
     Converts the argument into a web resource name, this means: all lowercase characters and words are separated with dashes.



Method Detail
constructDummyArrayDeclaration
public static String constructDummyArrayDeclaration(String name, int count)(Code)
Constructs a string representing an array initialization in Java.
Parameters:
  name - the name to give the array.
Parameters:
  count - the number of items to give the array. A String representing Java code for the initialization of an array.



getDateFormat
public static String getDateFormat(String format)(Code)
this field's date format



getEqual
public static java.lang.String getEqual(ModelElementFacade element)(Code)
Retrieves the "equal" value from the given element (if one is present).
Parameters:
  element - the element from which to retrieve the equal value. the "equal" value.



getFormat
public static String getFormat(ModelElementFacade element, ClassifierFacade type, String defaultDateFormat, String defaultTimeFormat)(Code)
Gets the format string for the given element.
Parameters:
  element - the element for which to retrieve the format.
Parameters:
  type - the type of the element. the format string (if one is present otherwise null).



getInputFormat
public static String getInputFormat(ModelElementFacade element)(Code)
Retrieves the input format (if one is defined), for the given element.
Parameters:
  element - the model element for which to retrieve the input format. the input format.



getMaxLengthValue
public static String getMaxLengthValue(String format)(Code)
the maximum number of characters this field's value must consist of



getMinLengthValue
public static String getMinLengthValue(String format)(Code)
the minimum number of characters this field's value must consist of



getPatternValue
public static String getPatternValue(String format)(Code)
the pattern this field's value must respect



getRangeEnd
public static String getRangeEnd(String format)(Code)
the upper limit for this field's value's range



getRangeStart
public static String getRangeStart(String format)(Code)
the lower limit for this field's value's range



getToken
public static String getToken(String string, int index, int limit)(Code)
the i-th space delimited token read from the argument String, where i does not exceed the specified limit



getValidWhen
public static java.lang.String getValidWhen(ModelElementFacade element)(Code)
Retrieves the "validwhen" value from the given element (if one is present).
Parameters:
  element - the element from which to retrieve the validwhen value. the "validwhen" value.



getValidatorArgs
public static java.util.Collection getValidatorArgs(ModelElementFacade element, java.lang.String validatorType)(Code)
Gets the validator args for the element and the given validatorType.
Parameters:
  element - the element for which to retrieve the arguments.
Parameters:
  validatorType - the validator type name. the validator args as a collection.



getValidatorTypes
public static java.util.Collection getValidatorTypes(ModelElementFacade element, ClassifierFacade type)(Code)
Retrieves the validator types as a collection from the given element (if any can be retrieved).
Parameters:
  element - the element from which to retrieve the types.
Parameters:
  type - the type of the element. the collection of validator types.



getValidatorVars
public static java.util.Collection getValidatorVars(ModelElementFacade element, ClassifierFacade type)(Code)
Gets the validator variables for the given element (if they can be retrieved).
Parameters:
  element - the element from which to retrieve the variables
Parameters:
  type - the type of the element. the collection of validator variables.



getViewExtension
public String getViewExtension()(Code)
Gets the extension for the current view type. the view type extension.



getViewType
public String getViewType()(Code)
Gets the current view type. the view type.



isByte
public static boolean isByte(ClassifierFacade type)(Code)
true if the type of this field is a byte, false otherwise



isCreditCardFormat
public static boolean isCreditCardFormat(String format)(Code)
Indicates if the given format is a creditcard format. true if this field is to be formatted as a credit card, false otherwise



isDate
public static boolean isDate(ClassifierFacade type)(Code)
true if the type of this field is a date, false otherwise



isDouble
public static boolean isDouble(ClassifierFacade type)(Code)
true if the type of this field is a double precision floating point, false otherwise



isEmailFormat
public static boolean isEmailFormat(String format)(Code)
Indicates if the given format is an email format. true if this field is to be formatted as an email address, false otherwise



isEqualFormat
public static boolean isEqualFormat(String format)(Code)
Indicates if the given format is an equal format. true if this field is to be formatted as an email address, false otherwise



isFloat
public static boolean isFloat(ClassifierFacade type)(Code)
true if the type of this field is a floating point, false otherwise



isInteger
public static boolean isInteger(ClassifierFacade type)(Code)
true if the type of this field is an integer, false otherwise



isLong
public static boolean isLong(ClassifierFacade type)(Code)
true if the type of this field is a long integer, false otherwise



isMaxLengthFormat
public static boolean isMaxLengthFormat(String format)(Code)
Indicates if the given format is a maxlength format. true if this field's value needs to consist of at maximum a certainnumber of characters, false otherwise



isMinLengthFormat
public static boolean isMinLengthFormat(String format)(Code)
Indicates if the given format is a minlength format. true if this field's value needs to consist of at least a certainnumber of characters, false otherwise



isPatternFormat
public static boolean isPatternFormat(String format)(Code)
Indicates if the given format is a pattern format. true if this field's value needs to respect a certain pattern, false otherwise



isRangeFormat
public static boolean isRangeFormat(String format)(Code)
Indicates if the given format is a range format. true if this field's value needs to be in a specific range, false otherwise



isReadOnly
public static boolean isReadOnly(ModelElementFacade element)(Code)
Indicates if the given element is read-only or not.
Parameters:
  element - the element to check. true/false



isShort
public static boolean isShort(ClassifierFacade type)(Code)
true if the type of this field is a short, false otherwise



isStrictDateFormat
public static boolean isStrictDateFormat(String format)(Code)
true if this field's value needs to conform to a strict date format, false otherwise



isStrictDateFormat
public static boolean isStrictDateFormat(ModelElementFacade element)(Code)
Indicates whether or not the format for this element is a strict date format. true/false



isString
public static boolean isString(ClassifierFacade type)(Code)
true if the type of this field is a String, false otherwise



isTime
public static boolean isTime(ClassifierFacade type)(Code)
true if the type of this field is a time, false otherwise



isUrl
public static boolean isUrl(ClassifierFacade type)(Code)
true if the type of this field is a URL, false otherwise



parseValidatorArgs
public static List parseValidatorArgs(String validatorTaggedValue)(Code)
Reads the validator arguments from the the given tagged value. returns a list of String instances or an empty list
throws:
  IllegalArgumentException - when the input string does not match the required pattern



parseValidatorName
public static String parseValidatorName(String validatorTaggedValue)(Code)
Parses the validator name for a tagged value.
throws:
  IllegalArgumentException - when the input string does not match the required pattern



parseValidatorVars
public static List parseValidatorVars(String validatorTaggedValue)(Code)
Reads the validator variable names from the the given tagged value. never null, returns a list of String instances
throws:
  IllegalArgumentException - when the input string does not match the required pattern



setStrictDateTimeFormat
public void setStrictDateTimeFormat(boolean strictDateTimeFormat)(Code)
Sets whether or not the dattern patterns should be treated as strict.
Parameters:
  strictDateTimeFormat -



setViewType
public void setViewType(String viewType)(Code)
Sets the view type to use.
Parameters:
  viewType - the view type.



toWebResourceName
public static String toWebResourceName(String string)(Code)
Converts the argument into a web resource name, this means: all lowercase characters and words are separated with dashes.
Parameters:
  string - any string the string converted to a value that would be well-suited for aweb file name



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.