Examples of parent()


Examples of org.gatein.api.navigation.NodePath.parent()

    @Managed("{path: .*}")
    @ManagedRole("administrators")
    @ManagedOperation(name = OperationNames.ADD_RESOURCE, description = "Adds the navigation node")
    public ModelObject addNode(@MappedPath("path") String path, @ManagedContext PathAddress address) {
        NodePath nodePath = NodePath.fromString(path);
        Node parent = getNode(nodePath.parent(), true, Nodes.visitChildren());
        String name = nodePath.getLastSegment();

        if (parent.hasChild(name)) {
            throw alreadyExists("Cannot add node", navigation.getSiteId(), nodePath);
        }
View Full Code Here

Examples of org.glassfish.admin.amx.config.AMXConfigProxy.parent()

        if ( ! config.type().equals( "domain" ) )   // hard-coded type, we can't import Domain.class here
        {
            // verify that all its ancestors are also AMXConfig
            // Do a quick check, ultimately if all AMXConfig have an AMXConfig as a parent,
            // then they all have DomainConfig as a parent.
            if ( ! AMXConfigProxy.class.isAssignableFrom(config.parent().extra().genericInterface() ) )
            {
                problems.add("AMXConfig MBean is not a descendant of Domain: " + config.objectName() + ", it has parent " + config.getParent() );
            }
        }
       
View Full Code Here

Examples of org.glassfish.admin.amx.core.AMXProxy.parent()

                            break;
                        }
                    }
                }
                // continue up the containment hierarchy until we run out of config objects
                amx = amx.parent();
            }
        }
       
        return result;
    }
View Full Code Here

Examples of org.glassfish.admin.rest.composite.RestModelExtension.parent()

            Map<String, List<String>> classes = new HashMap<String, List<String>>();

            for (TypeElement te : elements) {
                for (Element e : env.getElementsAnnotatedWith(te)) {
                    final RestModelExtension annotation = e.getAnnotation(RestModelExtension.class);
                    final String parent = annotation.parent();
                    List<String> list = classes.get(parent);
                    if (list == null) {
                        list = new ArrayList<String>();
                        classes.put(parent, list);
                    }
View Full Code Here

Examples of org.infinispan.config.ConfigurationElement.parent()

                     return (AbstractConfigurationBean) clazz.newInstance();
                  }
               }
            } else {
               ConfigurationElement ce = clazz.getAnnotation(ConfigurationElement.class);
               if (ce != null && (ce.name().equals(name) && ce.parent().equals(parentName))) {
                  return (AbstractConfigurationBean) clazz.newInstance();
               }
            }
         } catch (Exception e1) {
            throw new ConfigurationException("Could not instantiate class " + clazz, e1);
View Full Code Here

Examples of org.jano.resources.ResourceRef.parent()

  @Override
  public NanoHTTPD.Response serve(NanoHTTPD.IHTTPSession session, ResourceSystem resourceSystem) throws Exception {
    String uri = session.getUri();
    ResourceRef ref = resourceSystem.get(uri);

    Locator locator = createLocator(ref.parent());
    String initName = ref.name();

    //parse file into definition
    ZussDefinition definition = new Parser(locator.getResource(initName), locator, initName).parse();
View Full Code Here

Examples of org.javalite.activejdbc.test_models.Address.parent()

public class Defect48Test extends ActiveJDBCTest{

    @Test
    public void shouldFailIfParentRequestedAndForeignKeyNotSet(){
        Address a = new Address();
        User u = a.parent(User.class);
        a(u).shouldBeNull();
    }
}
View Full Code Here

Examples of org.javalite.activejdbc.test_models.Computer.parent()

  }
 
  @Test
  public void shouldCheckThatComputerBelongsTo2DifferentParents() {
    Computer computer = Computer.findById(1);
    a(computer.parent(Motherboard.class)).shouldNotBeNull();
    a(computer.parent(Keyboard.class)).shouldNotBeNull();
  }
}
View Full Code Here

Examples of org.jboss.blacktie.jatmibroker.jab.JABTransaction.parent()

      s.push(act);

      while (nextLevel != null) {
        s.push(nextLevel);

        nextLevel = nextLevel.parent();
      }

      /*
       * Now push the hierarchy onto the thread stack.
       */
 
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.jab.JABTransaction.parent()

      s.push(act);

      while (nextLevel != null) {
        s.push(nextLevel);

        nextLevel = nextLevel.parent();
      }

      /*
       * Now push the hierarchy onto the thread stack.
       */
 
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.