Package org.platformlayer.core.model

Examples of org.platformlayer.core.model.Links


    PlatformLayerKey resolved = path.resolve(getContext());

    UntypedItemXml item = (UntypedItemXml) client.getItemUntyped(resolved, Format.XML);

    Links links = item.getLinks();

    Link link = new Link();
    link.name = name;
    link.target = target.resolve(getContext());

    Link existing = links.findLink(name);
    List<Link> linkList = links.getLinks();
    if (existing != null) {
      linkList.remove(existing);
    }
    linkList.add(link);
View Full Code Here


    PlatformLayerKey resolved = path.resolve(getContext());

    UntypedItemXml item = (UntypedItemXml) client.getItemUntyped(resolved, Format.XML);

    Links links = item.getLinks();

    Link existing = links.findLink(name);
    List<Link> linkList = links.getLinks();
    if (existing != null) {
      linkList.remove(existing);

      item.setLinks(links);
View Full Code Here

  public Links getLinks() {
    if (links == null) {
      Node element = XmlHelper.findUniqueChild(root, "links", false);
      if (element == null) {
        links = new Links();
      } else {
        JaxbHelper helper = JaxbHelper.get(Links.class);
        try {
          links = (Links) helper.unmarshal(element);
        } catch (JAXBException e) {
View Full Code Here

TOP

Related Classes of org.platformlayer.core.model.Links

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.