Examples of parent()


Examples of org.jclouds.domain.LocationBuilder.parent()

   public Location apply(Region input) {
      LocationBuilder builder = new LocationBuilder();
      builder.id(input.getSlug());
      builder.description(input.getId() + "/" + input.getName());
      builder.scope(LocationScope.REGION);
      builder.parent(getOnlyElement(justProvider.get()));
      builder.iso3166Codes(ImmutableSet.<String> of());
      return builder.build();
   }
}
View Full Code Here

Examples of org.jclouds.domain.LocationBuilder.parent()

      builder.metadata(ImmutableMap.<String, Object> of());
      builder.scope(LocationScope.ZONE);
      builder.iso3166Codes(ImmutableSet.<String> of());

      Datacenter parent = regionMap.get().get(vdc.unwrap().getIdFromLink(ParentLinkName.DATACENTER));
      builder.parent(datacenterToLocation.apply(parent));

      return builder.build();
   }
}
View Full Code Here

Examples of org.jclouds.domain.LocationBuilder.parent()

      builder.description(datacenter.getName() + " [" + datacenter.getLocation() + "]");
      builder.metadata(ImmutableMap.<String, Object> of());
      builder.scope(LocationScope.REGION);
      builder.iso3166Codes(ImmutableSet.<String> of());

      builder.parent(new LocationBuilder().scope(LocationScope.PROVIDER).id("abiquo").description("abiquo").build());

      return builder.build();
   }
}
View Full Code Here

Examples of org.jnetpcap.packet.annotate.Header.parent()

      if (a.id() != -1) {
        a.id();
      }

      if (a.parent() != JHeader.class) {
        header.parentClass = a.parent();
      }

      if (header.parentClass == null && c.getEnclosingClass() != null) {
        for (Class<?> p = c.getEnclosingClass(); p != null; p =
View Full Code Here

Examples of org.jsoup.nodes.Element.parent()

            Element parent = element.parent();
            while (parent != root) {
                if (evaluator.matches(root, parent))
                    return true;
                parent = parent.parent();
            }
            return false;
        }

        public String toString() {
View Full Code Here

Examples of org.jsoup.nodes.Node.parent()

                node = node.childNode(0);
                depth++;
            } else {
                while (node.nextSibling() == null && depth > 0) {
                    visitor.tail(node, depth);
                    node = node.parent();
                    depth--;
                }
                visitor.tail(node, depth);
                if (node == root)
                    break;
View Full Code Here

Examples of org.jvnet.hk2.config.Dom.parent()

                            if (trueLastIndexOf(str, '.') != -1) {
                                str = str.substring(trueLastIndexOf(str, '.') + 1);
                            }
                            try {
                                if (str != null) {
                                    ConfigSupport.deleteChild((ConfigBean) targetNode.parent(), (ConfigBean) targetNode);
                                    delPropertySuccess = true;
                                }
                            } catch (IllegalArgumentException ie) {
                                fail(context, localStrings.getLocalString("admin.set.delete.property.failure", "Could not delete the property: {0}",
                                        ie.getMessage()), ie);
View Full Code Here

Examples of org.locationtech.udig.catalog.IResolve.parent()

        public Object getParent( Object element ) {
            if (element instanceof IResolve) {
                IResolve resource = (IResolve) element;
                try {
                    return resource.parent(new  NullProgressMonitor());
                } catch (IOException e) {
                    CatalogUIPlugin.log(null, e);
                }
            }
            return null;
View Full Code Here

Examples of org.locationtech.udig.catalog.IResolve.parent()

        LinkedList<IResolve> path = new LinkedList<IResolve>();
        while( handle2 != null ) {
            path.addFirst(handle2);
            try {
                handle2 = handle2.parent(null);
            } catch (IOException e) {
                handle2 = null; // no more parents
            }
        }
        return path;
View Full Code Here

Examples of org.locationtech.udig.catalog.IResolve.parent()

        IResolve handle2=handle;
        LinkedList<URL> path = new LinkedList<URL>();
        while( handle2 != null ) {
            path.addFirst(handle2.getIdentifier());
            try {
                handle2 = handle2.parent(null);
            } catch (IOException e) {
                handle2 = null; // no more parents
            }
        }
        return path;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.