Package org.structr.common.error

Examples of org.structr.common.error.ValueToken


        if (value == null) {

          if (!options.isEmpty()) {

            errorBuffer.add(Widget.class.getSimpleName(), new ValueToken(new StringProperty(key), options.toArray()));

          } else {

            errorBuffer.add(Widget.class.getSimpleName(), new EmptyPropertyToken(new StringProperty(key)));
          }
View Full Code Here


        try {
          return (T) Enum.valueOf(enumType, source.toString());

        } catch (Throwable t) {

          throw new FrameworkException(declaringClass.getSimpleName(), new ValueToken(EnumProperty.this, enumType.getEnumConstants()));
        }
      }

      return null;
View Full Code Here

        return true;

      } else {
       
        errorBuffer.add(object.getType(), new ValueToken(key, values.toArray()));
      }
    }

    return false;
  }
View Full Code Here

    String stringValue = value != null ? value.toString() : "";
   
    boolean valid = ("true".equalsIgnoreCase(stringValue) || "false".equalsIgnoreCase(stringValue));
   
    if(!valid) {
      errorBuffer.add(object.getType(), new ValueToken(key, new Object[] { true, false } ));
    }
   
    return valid;
  }
View Full Code Here

      }

    }

    errorBuffer.add(type, new ValueToken(key, values));

    return true;
  }
View Full Code Here

        return false;
      }

    }

    errorBuffer.add(typeString, new ValueToken(key, values));

    return true;
  }
View Full Code Here

      }

    }

    errorBuffer.add(type, new ValueToken(key, values));

    return true;
  }
View Full Code Here

TOP

Related Classes of org.structr.common.error.ValueToken

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.