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

org.w3._1999.xlink.Extended Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.02.07 at 09:47:09 AM CET 
//


package org.w3._1999.xlink;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
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.XmlType;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;


/**
 * 
 *     Intended for use as the type of user-declared elements to make them
 *     extended links.
 *     Note that the elements referenced in the content model are all abstract.
 *     The intention is that by simply declaring elements with these as their
 *     substitutionGroup, all the right things will happen.
 *    
 * 
 * 

Java class for extended complex type. * *

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

 * <complexType name="extended">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <group ref="{http://www.w3.org/1999/xlink}extendedModel" maxOccurs="unbounded" minOccurs="0"/>
 *       <attGroup ref="{http://www.w3.org/1999/xlink}extendedAttrs"/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "extended", propOrder = { "extendedModel" }) public class Extended implements ToString { @XmlElements({ @XmlElement(name = "title", type = TitleEltType.class), @XmlElement(name = "resource", type = ResourceType.class), @XmlElement(name = "locator", type = LocatorType.class), @XmlElement(name = "arc", type = ArcType.class) }) protected List extendedModel; @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true) protected TypeType type; @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") protected String role; @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") protected String title; /** * Gets the value of the extendedModel 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 extendedModel property. * *

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

     *    getExtendedModel().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TitleEltType } * {@link ResourceType } * {@link LocatorType } * {@link ArcType } * * */ public List getExtendedModel() { if (extendedModel == null) { extendedModel = new ArrayList(); } return this.extendedModel; } /** * Gets the value of the type property. * * @return * possible object is * {@link TypeType } * */ public TypeType getType() { if (type == null) { return TypeType.EXTENDED; } else { return type; } } /** * Sets the value of the type property. * * @param value * allowed object is * {@link TypeType } * */ public void setType(TypeType value) { this.type = value; } /** * Gets the value of the role property. * * @return * possible object is * {@link String } * */ public String getRole() { return role; } /** * Sets the value of the role property. * * @param value * allowed object is * {@link String } * */ public void setRole(String value) { this.role = value; } /** * Gets the value of the title property. * * @return * possible object is * {@link String } * */ public String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link String } * */ public void setTitle(String value) { this.title = value; } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { List theExtendedModel; theExtendedModel = (((this.extendedModel!= null)&&(!this.extendedModel.isEmpty()))?this.getExtendedModel():null); strategy.appendField(locator, this, "extendedModel", buffer, theExtendedModel); } { TypeType theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType); } { String theRole; theRole = this.getRole(); strategy.appendField(locator, this, "role", buffer, theRole); } { String theTitle; theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle); } return buffer; } public Extended withExtendedModel(Object... values) { if (values!= null) { for (Object value: values) { getExtendedModel().add(value); } } return this; } public Extended withExtendedModel(Collection values) { if (values!= null) { getExtendedModel().addAll(values); } return this; } public Extended withType(TypeType value) { setType(value); return this; } public Extended withRole(String value) { setRole(value); return this; } public Extended withTitle(String value) { setTitle(value); return this; } }