blob: d375bd29c7edc78e66875ca59da1b181e55282d1 [file] [log] [blame]
/*
* Copyright (c) 1998, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// dmccann - June 29/2009 - 2.0 - Initial implementation
package org.eclipse.persistence.jaxb.xmlmodel;
import jakarta.xml.bind.JAXBElement;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElementRef;
import jakarta.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;extension base="{http://www.eclipse.org/eclipselink/xsds/persistence/oxm}java-attribute"&gt;
* &lt;all&gt;
* &lt;element ref="{http://www.eclipse.org/eclipselink/xsds/persistence/oxm}xml-abstract-null-policy" minOccurs="0"/&gt;
* &lt;element ref="{http://www.eclipse.org/eclipselink/xsds/persistence/oxm}xml-access-methods" minOccurs="0"/&gt;
* &lt;element ref="{http://www.eclipse.org/eclipselink/xsds/persistence/oxm}xml-java-type-adapter" minOccurs="0"/&gt;
* &lt;element ref="{http://www.eclipse.org/eclipselink/xsds/persistence/oxm}xml-properties" minOccurs="0"/&gt;
* &lt;element ref="{http://www.eclipse.org/eclipselink/xsds/persistence/oxm}xml-schema-type" minOccurs="0"/&gt;
* &lt;/all&gt;
* &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="##default" /&gt;
* &lt;attribute name="namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="##default" /&gt;
* &lt;attribute name="required" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /&gt;
* &lt;attribute name="xml-id" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /&gt;
* &lt;attribute name="xml-idref" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /&gt;
* &lt;attribute name="xml-key" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /&gt;
* &lt;attribute name="xml-list" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /&gt;
* &lt;attribute name="xml-inline-binary-data" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /&gt;
* &lt;attribute name="xml-attachment-ref" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /&gt;
* &lt;attribute name="xml-mime-type" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
* &lt;attribute name="read-only" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /&gt;
* &lt;attribute name="write-only" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /&gt;
* &lt;attribute name="container-type" type="{http://www.w3.org/2001/XMLSchema}string" default="##default" /&gt;
* &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="##default" /&gt;
* &lt;attribute name="xml-path" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
* &lt;/extension&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"xmlAbstractNullPolicy",
"xmlAccessMethods",
"xmlJavaTypeAdapter",
"xmlProperties",
"xmlSchemaType"
})
public class XmlAttribute
extends JavaAttribute
{
@XmlElementRef(name = "xml-abstract-null-policy", namespace = "http://www.eclipse.org/eclipselink/xsds/persistence/oxm", type = JAXBElement.class)
protected JAXBElement<? extends XmlAbstractNullPolicy> xmlAbstractNullPolicy;
@XmlElement(name = "xml-access-methods")
protected XmlAccessMethods xmlAccessMethods;
@XmlElement(name = "xml-java-type-adapter")
protected XmlJavaTypeAdapter xmlJavaTypeAdapter;
@XmlElement(name = "xml-properties")
protected XmlProperties xmlProperties;
@XmlElement(name = "xml-schema-type")
protected XmlSchemaType xmlSchemaType;
@jakarta.xml.bind.annotation.XmlAttribute(name = "name")
protected String name;
@jakarta.xml.bind.annotation.XmlAttribute(name = "namespace")
protected String namespace;
@jakarta.xml.bind.annotation.XmlAttribute(name = "required")
protected Boolean required;
@jakarta.xml.bind.annotation.XmlAttribute(name = "xml-id")
protected Boolean xmlId;
@jakarta.xml.bind.annotation.XmlAttribute(name = "xml-idref")
protected Boolean xmlIdref;
@jakarta.xml.bind.annotation.XmlAttribute(name = "xml-key")
protected Boolean xmlKey;
@jakarta.xml.bind.annotation.XmlAttribute(name = "xml-list")
protected Boolean xmlList;
@jakarta.xml.bind.annotation.XmlAttribute(name = "xml-inline-binary-data")
protected Boolean xmlInlineBinaryData;
@jakarta.xml.bind.annotation.XmlAttribute(name = "xml-attachment-ref")
protected Boolean xmlAttachmentRef;
@jakarta.xml.bind.annotation.XmlAttribute(name = "xml-mime-type")
protected String xmlMimeType;
@jakarta.xml.bind.annotation.XmlAttribute(name = "read-only")
protected Boolean readOnly;
@jakarta.xml.bind.annotation.XmlAttribute(name = "write-only")
protected Boolean writeOnly;
@jakarta.xml.bind.annotation.XmlAttribute(name = "container-type")
protected String containerType;
@jakarta.xml.bind.annotation.XmlAttribute(name = "type")
protected String type;
@jakarta.xml.bind.annotation.XmlAttribute(name = "xml-path")
protected String xmlPath;
/**
* Gets the value of the xmlAbstractNullPolicy property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link XmlNullPolicy }{@code >}
* {@link JAXBElement }{@code <}{@link XmlAbstractNullPolicy }{@code >}
* {@link JAXBElement }{@code <}{@link XmlIsSetNullPolicy }{@code >}
*
*/
public JAXBElement<? extends XmlAbstractNullPolicy> getXmlAbstractNullPolicy() {
return xmlAbstractNullPolicy;
}
/**
* Sets the value of the xmlAbstractNullPolicy property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link XmlNullPolicy }{@code >}
* {@link JAXBElement }{@code <}{@link XmlAbstractNullPolicy }{@code >}
* {@link JAXBElement }{@code <}{@link XmlIsSetNullPolicy }{@code >}
*
*/
public void setXmlAbstractNullPolicy(JAXBElement<? extends XmlAbstractNullPolicy> value) {
this.xmlAbstractNullPolicy = (value);
}
/**
* Gets the value of the xmlAccessMethods property.
*
* @return
* possible object is
* {@link XmlAccessMethods }
*
*/
public XmlAccessMethods getXmlAccessMethods() {
return xmlAccessMethods;
}
/**
* Sets the value of the xmlAccessMethods property.
*
* @param value
* allowed object is
* {@link XmlAccessMethods }
*
*/
public void setXmlAccessMethods(XmlAccessMethods value) {
this.xmlAccessMethods = value;
}
/**
* Gets the value of the xmlJavaTypeAdapter property.
*
* @return
* possible object is
* {@link XmlJavaTypeAdapter }
*
*/
public XmlJavaTypeAdapter getXmlJavaTypeAdapter() {
return xmlJavaTypeAdapter;
}
/**
* Sets the value of the xmlJavaTypeAdapter property.
*
* @param value
* allowed object is
* {@link XmlJavaTypeAdapter }
*
*/
public void setXmlJavaTypeAdapter(XmlJavaTypeAdapter value) {
this.xmlJavaTypeAdapter = value;
}
/**
* Gets the value of the xmlProperties property.
*
* @return
* possible object is
* {@link XmlProperties }
*
*/
public XmlProperties getXmlProperties() {
return xmlProperties;
}
/**
* Sets the value of the xmlProperties property.
*
* @param value
* allowed object is
* {@link XmlProperties }
*
*/
public void setXmlProperties(XmlProperties value) {
this.xmlProperties = value;
}
/**
* Gets the value of the xmlSchemaType property.
*
* @return
* possible object is
* {@link XmlSchemaType }
*
*/
public XmlSchemaType getXmlSchemaType() {
return xmlSchemaType;
}
/**
* Sets the value of the xmlSchemaType property.
*
* @param value
* allowed object is
* {@link XmlSchemaType }
*
*/
public void setXmlSchemaType(XmlSchemaType value) {
this.xmlSchemaType = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
if (name == null) {
return "##default";
} else {
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 namespace property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNamespace() {
if (namespace == null) {
return "##default";
} else {
return namespace;
}
}
/**
* Sets the value of the namespace property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNamespace(String value) {
this.namespace = value;
}
/**
* Indicates if the required flag was set via external metadata.
*
*/
public boolean isSetRequired() {
return required != null;
}
/**
* Gets the value of the required property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isRequired() {
if (required == null) {
return false;
} else {
return required;
}
}
/**
* Sets the value of the required property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setRequired(Boolean value) {
this.required = value;
}
/**
* Gets the value of the xmlId property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isXmlId() {
if (xmlId == null) {
return false;
} else {
return xmlId;
}
}
/**
* Sets the value of the xmlId property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setXmlId(Boolean value) {
this.xmlId = value;
}
/**
* Gets the value of the xmlIdref property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isXmlIdref() {
if (xmlIdref == null) {
return false;
} else {
return xmlIdref;
}
}
/**
* Sets the value of the xmlIdref property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setXmlIdref(Boolean value) {
this.xmlIdref = value;
}
/**
* Gets the value of the xmlKey property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isXmlKey() {
if (xmlKey == null) {
return false;
} else {
return xmlKey;
}
}
/**
* Sets the value of the xmlKey property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setXmlKey(Boolean value) {
this.xmlKey = value;
}
/**
* Gets the value of the xmlList property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isXmlList() {
if (xmlList == null) {
return false;
} else {
return xmlList;
}
}
/**
* Sets the value of the xmlList property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setXmlList(Boolean value) {
this.xmlList = value;
}
/**
* Gets the value of the xmlInlineBinaryData property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isXmlInlineBinaryData() {
if (xmlInlineBinaryData == null) {
return false;
} else {
return xmlInlineBinaryData;
}
}
/**
* Sets the value of the xmlInlineBinaryData property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setXmlInlineBinaryData(Boolean value) {
this.xmlInlineBinaryData = value;
}
/**
* Gets the value of the xmlAttachmentRef property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isXmlAttachmentRef() {
if (xmlAttachmentRef == null) {
return false;
} else {
return xmlAttachmentRef;
}
}
/**
* Sets the value of the xmlAttachmentRef property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setXmlAttachmentRef(Boolean value) {
this.xmlAttachmentRef = value;
}
/**
* Gets the value of the xmlMimeType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXmlMimeType() {
return xmlMimeType;
}
/**
* Sets the value of the xmlMimeType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setXmlMimeType(String value) {
this.xmlMimeType = value;
}
/**
* Gets the value of the readOnly property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isReadOnly() {
if (readOnly == null) {
return false;
} else {
return readOnly;
}
}
/**
* Sets the value of the readOnly property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setReadOnly(Boolean value) {
this.readOnly = value;
}
/**
* Indicates if the isReadOnly flag was set.
*
*/
public boolean isSetReadOnly() {
return this.readOnly != null;
}
/**
* Gets the value of the writeOnly property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isWriteOnly() {
if (writeOnly == null) {
return false;
} else {
return writeOnly;
}
}
/**
* Sets the value of the writeOnly property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setWriteOnly(Boolean value) {
this.writeOnly = value;
}
/**
* Indicates if the isWriteOnly flag was set.
*
*/
public boolean isSetWriteOnly() {
return this.writeOnly != null;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
if (type == null) {
return "##default";
} else {
return type;
}
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(String value) {
this.type = value;
}
/**
* Gets the value of the xmlPath property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXmlPath() {
return xmlPath;
}
/**
* Sets the value of the xmlPath property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setXmlPath(String value) {
this.xmlPath = value;
}
/**
* Gets the value of the containerType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContainerType() {
if (containerType == null) {
return "##default";
} else {
return containerType;
}
}
/**
* Sets the value of the containerType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContainerType(String value) {
this.containerType = value;
}
}