/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2012, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotoolkit.xlink.xml.v100; import java.util.ArrayList; 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; /** * * 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. * * * <p>Java class for extended complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <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> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "extended", propOrder = { "extendedModel" }) public class Extended { @XmlElements({ @XmlElement(name = "arc", type = ArcType.class), @XmlElement(name = "resource", type = ResourceType.class), @XmlElement(name = "title", type = TitleEltType.class), @XmlElement(name = "locator", type = LocatorType.class) }) private List<Object> extendedModel; @XmlAttribute(namespace = "http://www.w3.org/1999/xlink", required = true) private TypeType type; @XmlAttribute(namespace = "http://www.w3.org/1999/xlink") private String role; @XmlAttribute(namespace = "http://www.w3.org/1999/xlink") private String titleTemp; /** * Gets the value of the extendedModel property. * * Objects of the following type(s) are allowed in the list * {@link ArcType } * {@link ResourceType } * {@link TitleEltType } * {@link LocatorType } * * */ public List<Object> getExtendedModel() { if (extendedModel == null) { extendedModel = new ArrayList<Object>(); } 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 titleTemp property. * * @return * possible object is * {@link String } * */ public String getTitleTemp() { return titleTemp; } /** * Sets the value of the titleTemp property. * * @param value * allowed object is * {@link String } * */ public void setTitleTemp(String value) { this.titleTemp = value; } }