/* * 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.swe.xml.v100; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <extension base="{http://www.opengis.net/swe/1.0}AbstractEncodingType"> * <attribute name="tokenSeparator" use="required" type="{http://www.opengis.net/swe/1.0}textSeparator" /> * <attribute name="blockSeparator" use="required" type="{http://www.opengis.net/swe/1.0}textSeparator" /> * <attribute name="decimalSeparator" use="required" type="{http://www.opengis.net/swe/1.0}decimalSeparator" /> * </extension> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "TextBlock") public class TextBlock extends AbstractEncodingType implements org.geotoolkit.swe.xml.TextBlock { @XmlAttribute(required = true) private String tokenSeparator; @XmlAttribute(required = true) private String blockSeparator; @XmlAttribute(required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) private String decimalSeparator; public TextBlock() {} public TextBlock(final org.geotoolkit.swe.xml.TextBlock tb) { super(tb); if (tb != null) { this.blockSeparator = tb.getBlockSeparator(); this.decimalSeparator = tb.getDecimalSeparator(); this.tokenSeparator = tb.getTokenSeparator(); } } /** * Crée un nouveau encodage de texte. */ public TextBlock(final String id, final String tokenSeparator, final String blockSeparator, final String decimalSeparator) { super(id); this.tokenSeparator = tokenSeparator; this.blockSeparator = blockSeparator; this.decimalSeparator = decimalSeparator; } /** * Gets the value of the tokenSeparator property. * * @return * possible object is * {@link String } * */ @Override public String getTokenSeparator() { return tokenSeparator; } /** * Sets the value of the tokenSeparator property. * * @param value * allowed object is * {@link String } * */ public void setTokenSeparator(final String value) { this.tokenSeparator = value; } /** * Gets the value of the blockSeparator property. * * @return * possible object is * {@link String } * */ @Override public String getBlockSeparator() { return blockSeparator; } /** * Sets the value of the blockSeparator property. * * @param value * allowed object is * {@link String } * */ public void setBlockSeparator(final String value) { this.blockSeparator = value; } /** * Gets the value of the decimalSeparator property. * * @return * possible object is * {@link String } * */ @Override public String getDecimalSeparator() { return decimalSeparator; } /** * Sets the value of the decimalSeparator property. * * @param value * allowed object is * {@link String } * */ public void setDecimalSeparator(final String value) { this.decimalSeparator = value; } }