Package com.tll.common.model.test

Examples of com.tll.common.model.test.TestEntityType


  static class TestMarshalOptionsResolver implements IMarshalOptionsResolver {
    @Override
    public MarshalOptions resolve(IEntityType entityType) throws IllegalArgumentException {
      if(entityType instanceof TestEntityType) {
        final TestEntityType set = (TestEntityType) entityType;
        switch(set) {
        case ACCOUNT:
          return ACCOUNT_MARSHAL_OPTIONS;
        case ADDRESS:
          return ADDRESS_OPTIONS;
View Full Code Here


  private static final String MODEL_PKG_TKN = "com.tll.model.test.";

  @Override
  public Class<?> resolveEntityClass(IEntityType entityType) throws IllegalArgumentException {
    if(entityType instanceof TestEntityType == false) throw new IllegalArgumentException("Expeceted TestEntityType");
    final TestEntityType set = (TestEntityType) entityType;
    try {
      return Class.forName(MODEL_PKG_TKN + StringUtil.enumStyleToCamelCase(set.name(), true));
    }
    catch(final ClassNotFoundException e) {
      throw new IllegalArgumentException(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.tll.common.model.test.TestEntityType

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.