to.etc.domui.component.meta
Class MetaUtils

java.lang.Object
  extended by to.etc.domui.component.meta.MetaUtils

public class MetaUtils
extends java.lang.Object

Utility class used as utility method library for working with meta data.

Author:
vmijic Created on 4 Aug 2009

Field Summary
static java.lang.String COL
          Use in component hint when setting default cols attribute for TextArea based components.
static java.lang.String NO_MINUS
          Use in component hint when rendering componet maxsize should not calculate extra space for minus sign.
static java.lang.String NO_SEPARATOR
          Use in component hint when rendering componet maxsize should not calculate extra space for thousent separators.
static java.lang.String ROW
          Use in component hint when setting default rows attribute for TextArea based components.
static java.lang.String TEXT_AREA
          Use in component hint when rendering of TextArea component is required.
 
Constructor Summary
MetaUtils()
           
 
Method Summary
static java.lang.String findHintText(SearchPropertyMetaModel spm)
           
static PropertyMetaModel<?> findLastProperty(java.util.List<PropertyMetaModel<?>> pl)
           
static PropertyMetaModel<?> findLastProperty(SearchPropertyMetaModel spm)
           
static PropertyMetaModel<?> getLastProperty(java.util.List<PropertyMetaModel<?>> pl)
           
static PropertyMetaModel<?> getLastProperty(SearchPropertyMetaModel spm)
           
static int parseIntParam(java.lang.String metadataLine, java.lang.String paramName, int defaultValue)
          Parses value of param defined in metadataLine string as Integer value.
static java.lang.String parseStringParam(java.lang.String metadataLine, java.lang.String paramName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_MINUS

public static final java.lang.String NO_MINUS
Use in component hint when rendering componet maxsize should not calculate extra space for minus sign.

See Also:
Constant Field Values

NO_SEPARATOR

public static final java.lang.String NO_SEPARATOR
Use in component hint when rendering componet maxsize should not calculate extra space for thousent separators.

See Also:
Constant Field Values

TEXT_AREA

public static final java.lang.String TEXT_AREA
Use in component hint when rendering of TextArea component is required.

See Also:
Constant Field Values

ROW

public static final java.lang.String ROW
Use in component hint when setting default rows attribute for TextArea based components.

See Also:
Constant Field Values

COL

public static final java.lang.String COL
Use in component hint when setting default cols attribute for TextArea based components.

See Also:
Constant Field Values
Constructor Detail

MetaUtils

public MetaUtils()
Method Detail

parseIntParam

public static int parseIntParam(java.lang.String metadataLine,
                                java.lang.String paramName,
                                int defaultValue)
Parses value of param defined in metadataLine string as Integer value.

Returns:
Integer value represented as string, in case that param is not defined or NumberFormatException exception returns default value.

parseStringParam

public static java.lang.String parseStringParam(java.lang.String metadataLine,
                                                java.lang.String paramName)

findLastProperty

public static PropertyMetaModel<?> findLastProperty(java.util.List<PropertyMetaModel<?>> pl)
Parameters:
pl -
Returns:

findLastProperty

public static PropertyMetaModel<?> findLastProperty(SearchPropertyMetaModel spm)

getLastProperty

public static PropertyMetaModel<?> getLastProperty(java.util.List<PropertyMetaModel<?>> pl)

getLastProperty

public static PropertyMetaModel<?> getLastProperty(SearchPropertyMetaModel spm)

findHintText

public static java.lang.String findHintText(SearchPropertyMetaModel spm)