/** * If not already created, a new <code>attributes</code> element with the given value will be created. * Otherwise, the existing <code>attributes</code> element will be returned. * @return a new or existing instance of <code>Attributes<MappedSuperclass<T>></code> */ public Attributes<MappedSuperclass<T>> getOrCreateAttributes() { Node node = childNode.getOrCreate("attributes"); Attributes<MappedSuperclass<T>> attributes = new AttributesImpl<MappedSuperclass<T>>(this, "attributes", childNode, node); return attributes; }
/** * If not already created, a new <code>embedded</code> element will be created and returned. * Otherwise, the first existing <code>embedded</code> element will be returned. * @return the instance defined for the element <code>embedded</code> */ public Embedded<Attributes<T>> getOrCreateEmbedded() { List<Node> nodeList = childNode.get("embedded"); if (nodeList != null && nodeList.size() > 0) { return new EmbeddedImpl<Attributes<T>>(this, "embedded", childNode, nodeList.get(0)); } return createEmbedded(); }
/** * If not already created, a new <code>basic</code> element will be created and returned. * Otherwise, the first existing <code>basic</code> element will be returned. * @return the instance defined for the element <code>basic</code> */ public Basic<Attributes<T>> getOrCreateBasic() { List<Node> nodeList = childNode.get("basic"); if (nodeList != null && nodeList.size() > 0) { return new BasicImpl<Attributes<T>>(this, "basic", childNode, nodeList.get(0)); } return createBasic(); }
/** * 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-one</code> element will be created and returned. * Otherwise, the first existing <code>one-to-one</code> element will be returned. * @return the instance defined for the element <code>one-to-one</code> */ public OneToOne<Attributes<T>> getOrCreateOneToOne() { List<Node> nodeList = childNode.get("one-to-one"); if (nodeList != null && nodeList.size() > 0) { return new OneToOneImpl<Attributes<T>>(this, "one-to-one", childNode, nodeList.get(0)); } return createOneToOne(); }
/** * If not already created, a new <code>many-to-many</code> element will be created and returned. * Otherwise, the first existing <code>many-to-many</code> element will be returned. * @return the instance defined for the element <code>many-to-many</code> */ public ManyToMany<Attributes<T>> getOrCreateManyToMany() { List<Node> nodeList = childNode.get("many-to-many"); if (nodeList != null && nodeList.size() > 0) { return new ManyToManyImpl<Attributes<T>>(this, "many-to-many", childNode, nodeList.get(0)); } return createManyToMany(); }
/** * If not already created, a new <code>element-collection</code> element will be created and returned. * Otherwise, the first existing <code>element-collection</code> element will be returned. * @return the instance defined for the element <code>element-collection</code> */ public ElementCollection<Attributes<T>> getOrCreateElementCollection() { List<Node> nodeList = childNode.get("element-collection"); if (nodeList != null && nodeList.size() > 0) { return new ElementCollectionImpl<Attributes<T>>(this, "element-collection", childNode, nodeList.get(0)); } return createElementCollection(); }
/** * If not already created, a new <code>transient</code> element will be created and returned. * Otherwise, the first existing <code>transient</code> element will be returned. * @return the instance defined for the element <code>transient</code> */ public Transient<Attributes<T>> getOrCreateTransient() { List<Node> nodeList = childNode.get("transient"); if (nodeList != null && nodeList.size() > 0) { return new TransientImpl<Attributes<T>>(this, "transient", childNode, nodeList.get(0)); } return createTransient(); }
/** * If not already created, a new <code>id</code> element will be created and returned. * Otherwise, the first existing <code>id</code> element will be returned. * @return the instance defined for the element <code>id</code> */ public Id<Attributes<T>> getOrCreateId() { List<Node> nodeList = childNode.get("id"); if (nodeList != null && nodeList.size() > 0) { return new IdImpl<Attributes<T>>(this, "id", childNode, nodeList.get(0)); } return createId(); }
/** * If not already created, a new <code>many-to-one</code> element will be created and returned. * Otherwise, the first existing <code>many-to-one</code> element will be returned. * @return the instance defined for the element <code>many-to-one</code> */ public ManyToOne<Attributes<T>> getOrCreateManyToOne() { List<Node> nodeList = childNode.get("many-to-one"); if (nodeList != null && nodeList.size() > 0) { return new ManyToOneImpl<Attributes<T>>(this, "many-to-one", childNode, nodeList.get(0)); } return createManyToOne(); }
/** * If not already created, a new <code>embedded</code> element will be created and returned. * Otherwise, the first existing <code>embedded</code> element will be returned. * @return the instance defined for the element <code>embedded</code> */ public Embedded<Attributes<T>> getOrCreateEmbedded() { List<Node> nodeList = childNode.get("embedded"); if (nodeList != null && nodeList.size() > 0) { return new EmbeddedImpl<Attributes<T>>(this, "embedded", childNode, nodeList.get(0)); } return createEmbedded(); }
/** * If not already created, a new <code>basic</code> element will be created and returned. * Otherwise, the first existing <code>basic</code> element will be returned. * @return the instance defined for the element <code>basic</code> */ public Basic<Attributes<T>> getOrCreateBasic() { List<Node> nodeList = childNode.get("basic"); if (nodeList != null && nodeList.size() > 0) { return new BasicImpl<Attributes<T>>(this, "basic", childNode, nodeList.get(0)); } return createBasic(); }
/** * 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-one</code> element will be created and returned. * Otherwise, the first existing <code>one-to-one</code> element will be returned. * @return the instance defined for the element <code>one-to-one</code> */ public OneToOne<Attributes<T>> getOrCreateOneToOne() { List<Node> nodeList = childNode.get("one-to-one"); if (nodeList != null && nodeList.size() > 0) { return new OneToOneImpl<Attributes<T>>(this, "one-to-one", childNode, nodeList.get(0)); } return createOneToOne(); }
/** * If not already created, a new <code>many-to-many</code> element will be created and returned. * Otherwise, the first existing <code>many-to-many</code> element will be returned. * @return the instance defined for the element <code>many-to-many</code> */ public ManyToMany<Attributes<T>> getOrCreateManyToMany() { List<Node> nodeList = childNode.get("many-to-many"); if (nodeList != null && nodeList.size() > 0) { return new ManyToManyImpl<Attributes<T>>(this, "many-to-many", childNode, nodeList.get(0)); } return createManyToMany(); }
/** * If not already created, a new <code>element-collection</code> element will be created and returned. * Otherwise, the first existing <code>element-collection</code> element will be returned. * @return the instance defined for the element <code>element-collection</code> */ public ElementCollection<Attributes<T>> getOrCreateElementCollection() { List<Node> nodeList = childNode.get("element-collection"); if (nodeList != null && nodeList.size() > 0) { return new ElementCollectionImpl<Attributes<T>>(this, "element-collection", childNode, nodeList.get(0)); } return createElementCollection(); }
/** * If not already created, a new <code>transient</code> element will be created and returned. * Otherwise, the first existing <code>transient</code> element will be returned. * @return the instance defined for the element <code>transient</code> */ public Transient<Attributes<T>> getOrCreateTransient() { List<Node> nodeList = childNode.get("transient"); if (nodeList != null && nodeList.size() > 0) { return new TransientImpl<Attributes<T>>(this, "transient", childNode, nodeList.get(0)); } return createTransient(); }
/** * If not already created, a new <code>id</code> element will be created and returned. * Otherwise, the first existing <code>id</code> element will be returned. * @return the instance defined for the element <code>id</code> */ public Id<Attributes<T>> getOrCreateId() { List<Node> nodeList = childNode.get("id"); if (nodeList != null && nodeList.size() > 0) { return new IdImpl<Attributes<T>>(this, "id", childNode, nodeList.get(0)); } return createId(); }
/** * If not already created, a new <code>many-to-one</code> element will be created and returned. * Otherwise, the first existing <code>many-to-one</code> element will be returned. * @return the instance defined for the element <code>many-to-one</code> */ public ManyToOne<Attributes<T>> getOrCreateManyToOne() { List<Node> nodeList = childNode.get("many-to-one"); if (nodeList != null && nodeList.size() > 0) { return new ManyToOneImpl<Attributes<T>>(this, "many-to-one", childNode, nodeList.get(0)); } return createManyToOne(); }
/** * If not already created, a new <code>attributes</code> element with the given value will be created. * Otherwise, the existing <code>attributes</code> element will be returned. * @return a new or existing instance of <code>Attributes<Entity<T>></code> */ public Attributes<Entity<T>> getOrCreateAttributes() { Node node = childNode.getOrCreate("attributes"); Attributes<Entity<T>> attributes = new AttributesImpl<Entity<T>>(this, "attributes", childNode, node); return attributes; }