/** * Creates a new <code>one-to-many</code> element * @return the new created instance of <code>OneToMany<EmbeddableAttributes<T>></code> */ public OneToMany<EmbeddableAttributes<T>> createOneToMany() { return new OneToManyImpl<EmbeddableAttributes<T>>(this, "one-to-many", childNode); }
/** * Creates a new <code>one-to-many</code> element * @return the new created instance of <code>OneToMany<EmbeddableAttributes<T>></code> */ public OneToMany<EmbeddableAttributes<T>> createOneToMany() { return new OneToManyImpl<EmbeddableAttributes<T>>(this, "one-to-many", childNode); }
/** * Creates a new <code>one-to-many</code> element * @return the new created instance of <code>OneToMany<Attributes<T>></code> */ public OneToMany<Attributes<T>> createOneToMany() { return new OneToManyImpl<Attributes<T>>(this, "one-to-many", childNode); }
/** * Creates a new <code>one-to-many</code> element * @return the new created instance of <code>OneToMany<Attributes<T>></code> */ public OneToMany<Attributes<T>> createOneToMany() { return new OneToManyImpl<Attributes<T>>(this, "one-to-many", childNode); }
/** * Returns all <code>one-to-many</code> elements * @return list of <code>one-to-many</code> */ public List<OneToMany<EmbeddableAttributes<T>>> getAllOneToMany() { List<OneToMany<EmbeddableAttributes<T>>> list = new ArrayList<OneToMany<EmbeddableAttributes<T>>>(); List<Node> nodeList = childNode.get("one-to-many"); for(Node node: nodeList) { OneToMany<EmbeddableAttributes<T>> type = new OneToManyImpl<EmbeddableAttributes<T>>(this, "one-to-many", childNode, node); list.add(type); } return list; }
/** * Returns all <code>one-to-many</code> elements * @return list of <code>one-to-many</code> */ public List<OneToMany<EmbeddableAttributes<T>>> getAllOneToMany() { List<OneToMany<EmbeddableAttributes<T>>> list = new ArrayList<OneToMany<EmbeddableAttributes<T>>>(); List<Node> nodeList = childNode.get("one-to-many"); for(Node node: nodeList) { OneToMany<EmbeddableAttributes<T>> type = new OneToManyImpl<EmbeddableAttributes<T>>(this, "one-to-many", childNode, node); list.add(type); } return list; }
/** * Returns all <code>one-to-many</code> elements * @return list of <code>one-to-many</code> */ public List<OneToMany<Attributes<T>>> getAllOneToMany() { List<OneToMany<Attributes<T>>> list = new ArrayList<OneToMany<Attributes<T>>>(); List<Node> nodeList = childNode.get("one-to-many"); for(Node node: nodeList) { OneToMany<Attributes<T>> type = new OneToManyImpl<Attributes<T>>(this, "one-to-many", childNode, node); list.add(type); } return list; }
/** * Returns all <code>one-to-many</code> elements * @return list of <code>one-to-many</code> */ public List<OneToMany<Attributes<T>>> getAllOneToMany() { List<OneToMany<Attributes<T>>> list = new ArrayList<OneToMany<Attributes<T>>>(); List<Node> nodeList = childNode.get("one-to-many"); for(Node node: nodeList) { OneToMany<Attributes<T>> type = new OneToManyImpl<Attributes<T>>(this, "one-to-many", childNode, node); list.add(type); } return list; }
/** * If not already created, a new <code>one-to-many</code> element will be created and returned. * Otherwise, the first existing <code>one-to-many</code> element will be returned. * @return the instance defined for the element <code>one-to-many</code> */ public OneToMany<Attributes<T>> getOrCreateOneToMany() { List<Node> nodeList = childNode.get("one-to-many"); if (nodeList != null && nodeList.size() > 0) { return new OneToManyImpl<Attributes<T>>(this, "one-to-many", childNode, nodeList.get(0)); } return createOneToMany(); }
/** * If not already created, a new <code>one-to-many</code> element will be created and returned. * Otherwise, the first existing <code>one-to-many</code> element will be returned. * @return the instance defined for the element <code>one-to-many</code> */ public OneToMany<Attributes<T>> getOrCreateOneToMany() { List<Node> nodeList = childNode.get("one-to-many"); if (nodeList != null && nodeList.size() > 0) { return new OneToManyImpl<Attributes<T>>(this, "one-to-many", childNode, nodeList.get(0)); } return createOneToMany(); }
/** * If not already created, a new <code>one-to-many</code> element will be created and returned. * Otherwise, the first existing <code>one-to-many</code> element will be returned. * @return the instance defined for the element <code>one-to-many</code> */ public OneToMany<EmbeddableAttributes<T>> getOrCreateOneToMany() { List<Node> nodeList = childNode.get("one-to-many"); if (nodeList != null && nodeList.size() > 0) { return new OneToManyImpl<EmbeddableAttributes<T>>(this, "one-to-many", childNode, nodeList.get(0)); } return createOneToMany(); }
/** * If not already created, a new <code>one-to-many</code> element will be created and returned. * Otherwise, the first existing <code>one-to-many</code> element will be returned. * @return the instance defined for the element <code>one-to-many</code> */ public OneToMany<EmbeddableAttributes<T>> getOrCreateOneToMany() { List<Node> nodeList = childNode.get("one-to-many"); if (nodeList != null && nodeList.size() > 0) { return new OneToManyImpl<EmbeddableAttributes<T>>(this, "one-to-many", childNode, nodeList.get(0)); } return createOneToMany(); }