/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2008 - 2009, 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.se.xml.v110;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.sis.internal.jaxb.gco.InternationalStringAdapter;
import org.geotoolkit.se.xml.DirectStringAdapter;
import org.apache.sis.util.iso.SimpleInternationalString;
import org.opengis.style.Description;
import org.opengis.style.StyleVisitor;
import org.opengis.util.InternationalString;
/**
* <p>Java class for DescriptionType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="DescriptionType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Abstract" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
* @module
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DescriptionType", propOrder = {
"title",
"_abstract"
})
public class DescriptionType implements Description {
@XmlElement(name = "Title")
@XmlJavaTypeAdapter(DirectStringAdapter.class)
protected InternationalString title;
@XmlElement(name = "Abstract")
@XmlJavaTypeAdapter(DirectStringAdapter.class)
protected InternationalString _abstract;
/**
* Gets the value of the title property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public InternationalString getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTitle(final String value) {
this.title = new SimpleInternationalString(value);
}
/**
* Gets the value of the abstract property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public InternationalString getAbstract() {
return _abstract;
}
/**
* Sets the value of the abstract property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAbstract(final String value) {
this._abstract = new SimpleInternationalString(value);
}
@Override
public Object accept(StyleVisitor sv, Object o) {
return sv.visit(this, o);
}
}