Package com.getperka.flatpack.ext

Examples of com.getperka.flatpack.ext.PropertyPath


      }
    } else {
      propertyNames = Collections.singletonList(x.getSimpleName());
    }

    PropertyPath toReturn = createPropertyPath(currentType, propertyNames);
    x.setReferent(toReturn);

    // Also update the referents for the compound ids, just in case they're needed later
    if (x.isCompound()) {
      for (int i = 0, j = x.getCompoundName().size(); i < j; i++) {
        x.getCompoundName().get(i).cast(Property.class).setReferent(toReturn.getPath().get(i));
      }
    }
    return;
  }
View Full Code Here


    }
    if (path.size() != propertyNames.size()) {
      error("Could not find property named " + lookFor + " in type " + resolveFrom.getName());
      return null;
    }
    return new PropertyPath(path);
  }
View Full Code Here

    this.paths = listForAny();
    for (PropertyPath path : parent.paths) {
      List<Property> newProperties = listForAny();
      newProperties.addAll(pathPrefix);
      newProperties.addAll(path.getPath());
      paths.add(new PropertyPath(newProperties));
    }
  }
View Full Code Here

TOP

Related Classes of com.getperka.flatpack.ext.PropertyPath

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.