/* * 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.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * <p>Java class for locatorType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="locatorType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <group ref="{http://www.w3.org/1999/xlink}locatorModel"/> * <attGroup ref="{http://www.w3.org/1999/xlink}locatorAttrs"/> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "locatorType", propOrder = { "title" }) public class LocatorType { private List<TitleEltType> title; @XmlAttribute(namespace = "http://www.w3.org/1999/xlink", required = true) private TypeType type; @XmlAttribute(namespace = "http://www.w3.org/1999/xlink", required = true) private String href; @XmlAttribute(namespace = "http://www.w3.org/1999/xlink") private String role; @XmlAttribute(namespace = "http://www.w3.org/1999/xlink") private String titleTemp; @XmlAttribute(namespace = "http://www.w3.org/1999/xlink") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) private String label; /** * Gets the value of the title property. * * Objects of the following type(s) are allowed in the list * {@link TitleEltType } * */ public List<TitleEltType> getTitle() { if (title == null) { title = new ArrayList<TitleEltType>(); } return this.title; } /** * Gets the value of the type property. * * @return * possible object is * {@link TypeType } * */ public TypeType getType() { if (type == null) { return TypeType.LOCATOR; } 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 href property. * * @return * possible object is * {@link String } * */ public String getHref() { return href; } /** * Sets the value of the href property. * * @param value * allowed object is * {@link String } * */ public void setHref(String value) { this.href = 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; } /** * * label is not required, but locators have no particular * XLink function if they are not labeled. * * * @return * possible object is * {@link String } * */ public String getLabel() { return label; } /** * Sets the value of the label property. * * @param value * allowed object is * {@link String } * */ public void setLabel(String value) { this.label = value; } }