Examples of Parent


Examples of org.jboss.test.xml.immutable.Parent

      List child2 = Arrays.asList(new Object[]{new Child2("child2_1"), new Child2("child2_2")});
      List others = Arrays.asList(new Object[]{new Child3("child3_1"), new Child3("child3_2"), new Child3("child3_3")});
      List choice = Arrays.asList(
         new Object[]{new ImmutableChoice("choice1"), new ImmutableChoice(new Child1("child1"))}
      );
      Parent parent = new Parent(child1, child2, others, choice);

      StringWriter writer = new StringWriter();
      marshaller.declareNamespace("imm", "http://www.jboss.org/test/xml/immutable/");
      //marshaller.setProperty(Marshaller.PROP_OUTPUT_INDENTATION, "false");
      marshaller.marshal(xsdUrl.toExternalForm(),
View Full Code Here

Examples of org.jdom.Parent

        }
      }
      Iterator itemsToRemove = v.iterator();
      while (itemsToRemove.hasNext()) {
        Element anItemToDelete = (Element) itemsToRemove.next();
        Parent parent = anItemToDelete.getParent();
        if (parent != null) {
          Tracing.logWarn("item no longer exists so remove " + anItemToDelete.getAttributeValue(ITEM_IDENTIFIER),null,SequencerModel.class);
          parent.removeContent(anItemToDelete);
        }
      }
    }
    v.clear();
  }
View Full Code Here

Examples of org.jdom2.Parent

    raw.append("<root>");
    pretty.append("<root>");
    pretty.append(lf);
    final int depth = 40;
    int cnt = depth;
    Parent parent = root;
    StringBuilder indent = new StringBuilder();
    while (--cnt > 0) {
      Element emt = new Element("emt");
      parent.getContent().add(emt);
      parent = emt;
      raw.append("<emt>");
      indent.append("  ");
      pretty.append(indent.toString());
      pretty.append("<emt>");
      pretty.append(lf);
    }
   
    parent.getContent().add(new Element("bottom"));
    raw.append("<bottom />");
    pretty.append(indent.toString());
    pretty.append("  <bottom />");
    pretty.append(lf);
   
View Full Code Here

Examples of org.jemmy.interfaces.Parent

                    public void run(Object... parameters) {
                        setResult(!((MenuButton)menuWrap.getControl()).isShowing());
                    }
                }.dispatch(getEnvironment())) {
                if (SplitMenuButton.class.isAssignableFrom(menuWrap.getControl().getClass())) {
                    Parent parent = (Parent) menuWrap.as(Parent.class, Node.class);
                    parent.lookup(Node.class, new ByStyleClass<Node>("arrow-button")).wrap().mouse().click();
                } else {
                    menuWrap.mouse().click();
                }
            }
        }

        Wrap<? extends Scene> popup_scene_wrap = Root.ROOT.lookup(new LookupCriteria<Scene>() {
            public boolean check(Scene scene) {
                if (!(scene.getWindow() instanceof ContextMenu)) {
                    return false;
                }
                Wrap<Scene> scene_wrap = new SceneWrap(getEnvironment(), scene);
                Parent<Node> parent = scene_wrap.as(Parent.class, Node.class);
                return parent.lookup(Node.class, new LookupCriteria<Node>() {
                    public boolean check(Node node) {
                        if (node.getProperties().get(Menu.class) == getControl().getParentMenu()) {
                            return true;
                        }
                        return false;
View Full Code Here

Examples of org.libreplan.business.util.deepcopy.EntityExamples.Parent

                .next());
    }

    @Test
    public void ifNotInnmutableNorCustomCopyRecursivelyCopiesIt() {
        Parent parent = new Parent();
        EntityA entityAProperty = new EntityA();
        Date originalDate = new Date();
        entityAProperty.setDate(originalDate);
        parent.setEntityAProperty(entityAProperty);
        Parent copy = new DeepCopy().copy(parent);
        assertNotSame(parent, copy);
        assertThat(copy.getEntityAProperty().getDate(), equalTo(originalDate));
        assertNotSame(copy.getEntityAProperty().getDate(), originalDate);
    }
View Full Code Here

Examples of org.raml.parser.annotation.Parent

    {
        List<Field> declaredFields = ReflectionUtils.getInheritedFields(pojo.getClass());
        for (Field declaredField : declaredFields)
        {
            Key keyAnnotation = declaredField.getAnnotation(Key.class);
            Parent parentAnnotation = declaredField.getAnnotation(Parent.class);
            if (keyAnnotation != null)
            {
                ReflectionUtils.setProperty(pojo, declaredField.getName(), keyFieldName);
            }
            if (parentAnnotation != null)
            {
                Object value = parent;
                if (!parentAnnotation.property().isEmpty())
                {
                    try
                    {
                        value = PropertyUtils.getProperty(parent, parentAnnotation.property());
                    }
                    catch (IllegalAccessException e)
                    {
                        throw new RuntimeException(e);
                    }
View Full Code Here

Examples of org.springframework.data.elasticsearch.annotations.Parent

  @Override
  public void addPersistentProperty(ElasticsearchPersistentProperty property) {
    super.addPersistentProperty(property);

    if (property.getField() != null) {
      Parent parent = property.getField().getAnnotation(Parent.class);
      if (parent != null) {
        Assert.isNull(this.parentIdProperty, "Only one field can hold a @Parent annotation");
        Assert.isNull(this.parentType, "Only one field can hold a @Parent annotation");
        Assert.isTrue(property.getType() == String.class, "Parent ID property should be String");
        this.parentIdProperty = property;
        this.parentType = parent.type();
      }
    }

    if (property.isVersionProperty()) {
      Assert.isTrue(property.getType() == Long.class, "Version property should be Long");
View Full Code Here

Examples of org.springframework.data.jpa.domain.sample.Parent

  @Autowired ParentRepository repository;

  @Before
  public void setUp() {

    repository.save(new Parent().add(new Child()));
    repository.save(new Parent().add(new Child()).add(new Child()));
    repository.save(new Parent().add(new Child()));
    repository.save(new Parent());
    repository.flush();
  }
View Full Code Here

Examples of quickdb.complexmodel.Parent

    public void testQuerySystemComplexCondition(){
        Reference ref = new Reference();
        ref.setValue("house md");

        Parent parent = new Parent();
        parent.setDescription("testing5");
        parent.setReference(ref);

        boolean value = admin.save(parent);
        System.out.println(value);

        Parent p = new Parent();
        admin.obtain(p, "reference.value = 'house md' && description = 'testing5'");

        System.out.println(p.getReference().getValue().equalsIgnoreCase("house md"));
        System.out.println(p.getDescription().equalsIgnoreCase("testing5"));
    }
View Full Code Here

Examples of samples.classhierarchy.Parent

        verifyAll();
    }

    @Test
    public void mockGatewayCanInvokeStaticMethodWhenClassContainsStaticAndInstanceMethodWithSameName() throws Exception {
        final Parent object = createMock(ChildA.class);

        mockStatic(StaticAndInstanceMethodWithSameName.class);
        expectNew(ChildA.class).andReturn((ChildA) object);
        StaticAndInstanceMethodWithSameName.overloaded((ChildA) object);
        expectLastCall().once();
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.