Package com.tll.common.model

Examples of com.tll.common.model.IPropertyValue


   */
  public static String pformat(Model model, String propName, GlobalFormat format) {
    if(model == null) return null;
    try {
      // resolve the property
      final IPropertyValue pv = model.getPropertyValue(propName);

      // self formatting type?
      if(pv.getType().isSelfFormatting()) {
        return ((ISelfFormattingPropertyValue) pv).asString();
      }

      // format the value..
      return Fmt.format(pv.getValue(), format);
    }
    catch(final UnsetPropertyException e) {
      return null;
    }
    catch(final NullNodeInPropPathException e) {
View Full Code Here

TOP

Related Classes of com.tll.common.model.IPropertyValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.