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

org.oasisopen.odata.csdl.v4.TNavigationProperty Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2025.03.17 at 10:03:30 PM UTC 
//


package org.oasisopen.odata.csdl.v4;

import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElements;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 

Java class for TNavigationProperty complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="TNavigationProperty">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice maxOccurs="unbounded" minOccurs="0">
 *         <element name="ReferentialConstraint" type="{http://docs.oasis-open.org/odata/ns/edm}TReferentialConstraint"/>
 *         <element name="OnDelete" type="{http://docs.oasis-open.org/odata/ns/edm}TOnDelete"/>
 *         <element ref="{http://docs.oasis-open.org/odata/ns/edm}Annotation"/>
 *       </choice>
 *       <attribute name="Name" use="required" type="{http://docs.oasis-open.org/odata/ns/edm}TSimpleIdentifier" />
 *       <attribute name="Type" use="required" type="{http://docs.oasis-open.org/odata/ns/edm}TTypeName" />
 *       <attribute name="Nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="Partner" type="{http://docs.oasis-open.org/odata/ns/edm}TPath" />
 *       <attribute name="ContainsTarget" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TNavigationProperty", propOrder = { "referentialConstraintOrOnDeleteOrAnnotation" }) public class TNavigationProperty { @XmlElements({ @XmlElement(name = "ReferentialConstraint", type = TReferentialConstraint.class), @XmlElement(name = "OnDelete", type = TOnDelete.class), @XmlElement(name = "Annotation", type = Annotation.class) }) protected List referentialConstraintOrOnDeleteOrAnnotation; @XmlAttribute(name = "Name", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String name; @XmlAttribute(name = "Type", required = true) protected List type; @XmlAttribute(name = "Nullable") protected Boolean nullable; @XmlAttribute(name = "Partner") protected String partner; @XmlAttribute(name = "ContainsTarget") protected Boolean containsTarget; /** * Gets the value of the referentialConstraintOrOnDeleteOrAnnotation 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 Jakarta XML Binding object. * This is why there is not a set method for the referentialConstraintOrOnDeleteOrAnnotation property. * *

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

     *    getReferentialConstraintOrOnDeleteOrAnnotation().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Annotation } * {@link TOnDelete } * {@link TReferentialConstraint } * * */ public List getReferentialConstraintOrOnDeleteOrAnnotation() { if (referentialConstraintOrOnDeleteOrAnnotation == null) { referentialConstraintOrOnDeleteOrAnnotation = new ArrayList(); } return this.referentialConstraintOrOnDeleteOrAnnotation; } /** * 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 type 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 Jakarta XML Binding object. * This is why there is not a set method for the type property. * *

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

     *    getType().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getType() { if (type == null) { type = new ArrayList(); } return this.type; } /** * Gets the value of the nullable property. * * @return * possible object is * {@link Boolean } * */ public Boolean isNullable() { return nullable; } /** * Sets the value of the nullable property. * * @param value * allowed object is * {@link Boolean } * */ public void setNullable(Boolean value) { this.nullable = value; } /** * Gets the value of the partner property. * * @return * possible object is * {@link String } * */ public String getPartner() { return partner; } /** * Sets the value of the partner property. * * @param value * allowed object is * {@link String } * */ public void setPartner(String value) { this.partner = value; } /** * Gets the value of the containsTarget property. * * @return * possible object is * {@link Boolean } * */ public Boolean isContainsTarget() { return containsTarget; } /** * Sets the value of the containsTarget property. * * @param value * allowed object is * {@link Boolean } * */ public void setContainsTarget(Boolean value) { this.containsTarget = value; } }