Package com.vercer.engine.persist.Path

Examples of com.vercer.engine.persist.Path.Part


 
  public static Collection<PrefixPropertySet> prefixPropertySets(Set<Property> properties, Path prefix)
  {
    Collection<PrefixPropertySet> result = new ArrayList<PrefixPropertySet>();
    Property[] array = (Property[]) properties.toArray(new Property[properties.size()]);
    Part part = null;
    int start = 0;
    for (int i = 0; i < array.length; i++)
    {
      Part firstPartAfterPrefix = array[i].getPath().firstPartAfterPrefix(prefix);
      if (part != null && !firstPartAfterPrefix.equals(part))
      {
        // if the first part has changed then add a new set
        PrefixPropertySet ppf = createPrefixSubset(prefix, array, part, start, i);
        result.add(ppf);
        start = i;
View Full Code Here


    // type erasure means we can use object as the generic parameters
    Map<Object, Object> result = new HashMap<Object, Object>(ppss.size());
    for (PrefixPropertySet pps : ppss)
    {
      // the key must be converted from a String
      Part partAfterPrefix = pps.getPrefix().firstPartAfterPrefix(path);
      Object key = converter.convert(partAfterPrefix.getName(), keyType);
     
      // decode the value properties using the generic type info
      Object value = chained.propertiesToTypesafe(pps.getProperties(), pps.getPrefix(), valueType);
     
      result.put(key, value);
View Full Code Here

TOP

Related Classes of com.vercer.engine.persist.Path.Part

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.