All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jvnet.hyperjaxb3.hibernate.mapping.DynamicComponent Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2007.01.30 at 01:23:09 PM CET 
//


package org.jvnet.hyperjaxb3.hibernate.mapping;

import java.util.ArrayList;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "propertyOrManyToOneOrOneToOneOrComponentOrDynamicComponentOrAnyOrMapOrSetOrListOrBagOrArrayOrPrimitiveArray"
})
@XmlRootElement(name = "dynamic-component")
public class DynamicComponent {

    @XmlAttribute(required = true)
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String name;
    @XmlAttribute
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String access;
    @XmlAttribute
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String unique;
    @XmlAttribute
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String update;
    @XmlAttribute
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String insert;
    @XmlAttribute(name = "optimistic-lock")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String optimisticLock;
    @XmlAttribute
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String node;
    @XmlElements({
        @XmlElement(name = "property", type = Property.class),
        @XmlElement(name = "many-to-one", type = ManyToOne.class),
        @XmlElement(name = "one-to-one", type = OneToOne.class),
        @XmlElement(name = "component", type = Component.class),
        @XmlElement(name = "dynamic-component", type = DynamicComponent.class),
        @XmlElement(name = "any", type = Any.class),
        @XmlElement(name = "map", type = Map.class),
        @XmlElement(name = "set", type = Set.class),
        @XmlElement(name = "list", type = org.jvnet.hyperjaxb3.hibernate.mapping.List.class),
        @XmlElement(name = "bag", type = Bag.class),
        @XmlElement(name = "array", type = Array.class),
        @XmlElement(name = "primitive-array", type = PrimitiveArray.class)
    })
    protected java.util.List propertyOrManyToOneOrOneToOneOrComponentOrDynamicComponentOrAnyOrMapOrSetOrListOrBagOrArrayOrPrimitiveArray;

    /**
     * Gets the value of the name property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setName(String value) {
        this.name = value;
    }

    /**
     * Gets the value of the access property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAccess() {
        return access;
    }

    /**
     * Sets the value of the access property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAccess(String value) {
        this.access = value;
    }

    /**
     * Gets the value of the unique property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getUnique() {
        if (unique == null) {
            return "false";
        } else {
            return unique;
        }
    }

    /**
     * Sets the value of the unique property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setUnique(String value) {
        this.unique = value;
    }

    /**
     * Gets the value of the update property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getUpdate() {
        if (update == null) {
            return "true";
        } else {
            return update;
        }
    }

    /**
     * Sets the value of the update property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setUpdate(String value) {
        this.update = value;
    }

    /**
     * Gets the value of the insert property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getInsert() {
        if (insert == null) {
            return "true";
        } else {
            return insert;
        }
    }

    /**
     * Sets the value of the insert property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setInsert(String value) {
        this.insert = value;
    }

    /**
     * Gets the value of the optimisticLock property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getOptimisticLock() {
        if (optimisticLock == null) {
            return "true";
        } else {
            return optimisticLock;
        }
    }

    /**
     * Sets the value of the optimisticLock property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setOptimisticLock(String value) {
        this.optimisticLock = value;
    }

    /**
     * Gets the value of the node property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getNode() {
        return node;
    }

    /**
     * Sets the value of the node property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setNode(String value) {
        this.node = value;
    }

    /**
     * Gets the value of the propertyOrManyToOneOrOneToOneOrComponentOrDynamicComponentOrAnyOrMapOrSetOrListOrBagOrArrayOrPrimitiveArray property.
     * 
     * 

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the propertyOrManyToOneOrOneToOneOrComponentOrDynamicComponentOrAnyOrMapOrSetOrListOrBagOrArrayOrPrimitiveArray property. * *

* For example, to add a new item, do as follows: *

     *    getPropertyOrManyToOneOrOneToOneOrComponentOrDynamicComponentOrAnyOrMapOrSetOrListOrBagOrArrayOrPrimitiveArray().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Property } * {@link ManyToOne } * {@link OneToOne } * {@link Component } * {@link DynamicComponent } * {@link Any } * {@link Map } * {@link Set } * {@link org.jvnet.hyperjaxb3.hibernate.mapping.List } * {@link Bag } * {@link Array } * {@link PrimitiveArray } * * */ public java.util.List getPropertyOrManyToOneOrOneToOneOrComponentOrDynamicComponentOrAnyOrMapOrSetOrListOrBagOrArrayOrPrimitiveArray() { if (propertyOrManyToOneOrOneToOneOrComponentOrDynamicComponentOrAnyOrMapOrSetOrListOrBagOrArrayOrPrimitiveArray == null) { propertyOrManyToOneOrOneToOneOrComponentOrDynamicComponentOrAnyOrMapOrSetOrListOrBagOrArrayOrPrimitiveArray = new ArrayList(); } return this.propertyOrManyToOneOrOneToOneOrComponentOrDynamicComponentOrAnyOrMapOrSetOrListOrBagOrArrayOrPrimitiveArray; } }