Package com.tll.model.schema

Examples of com.tll.model.schema.ISchemaProperty


   */
  protected static final <T> String clientizePropertyPath(ISchemaInfo schemaInfo, Class<T> entityClass, String path) {
    final PropertyPath p = new PropertyPath(path);
    if(p.depth() > 2) {
      final String ppp = p.trim(1);
      final ISchemaProperty sp = schemaInfo.getSchemaProperty(entityClass, ppp);
      if(sp.getPropertyType().isNested()) {
        path = ppp + '_' + p.last();
      }
    }
    return path;
  }
View Full Code Here


        else if(Map.class.isAssignableFrom(ptype)) {
          prop = new StringMapPropertyValue(pname, generatePropertyData(entityClass, pname), (Map) obj);
        }

        else {
          final ISchemaProperty sp = schemaInfo.getSchemaProperty(entityClass, pname);

          // nested property?
          if(sp != null && sp.getPropertyType().isNested()) {
            final BeanWrapperImpl bw2 = obj == null ? new BeanWrapperImpl(ptype) : new BeanWrapperImpl(obj);
            for(final PropertyDescriptor pd2 : bw2.getPropertyDescriptors()) {
              if(bw2.isWritableProperty(pd2.getName()) && isMarshalableProperty(pd2)) {
                try {
                  final Object oval = bw2.getPropertyValue(pd2.getName());
View Full Code Here

TOP

Related Classes of com.tll.model.schema.ISchemaProperty

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.