<commit_before>/*
 * Copyright (C) 2012 Max Planck Institute for Psycholinguistics
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package nl.mpi.flap.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * Created on : Dec 27, 2012, 12:26:17 PM
 *
 * @author <NAME> <<EMAIL>>
 */
@XmlRootElement(name = "DataNode")
public abstract class AbstractDataNode implements PluginArbilDataNode, Serializable {

    @XmlAttribute(name = "ID")
    public abstract String getID();

    @XmlAttribute(name = "Label")
    public String getName() {
        return this.toString();
    }<commit_msg>Added unit tests for the JaxB compatability.<commit_after>/*
 * Copyright (C) 2012 Max Planck Institute for Psycholinguistics
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package nl.mpi.flap.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * Created on : Dec 27, 2012, 12:26:17 PM
 *
 * @author <NAME> <<EMAIL>>
 */
@XmlRootElement(name = "DataNode")
public abstract class AbstractDataNode implements PluginArbilDataNode, Serializable {

    @XmlAttribute(name = "ID")
    public abstract void setID(String id);

    public abstract String getID();

    @XmlAttribute(name = "Label")
    public abstract void setLabel(String label);

    public String getLabel() {
        return this.toString();
    }
{'fraction_non_alphanumeric': 0.08618463524854746, 'fraction_numerical': 0.020012911555842477, 'mean_word_length': 4.097039473684211, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4261795', 'n_tokens_mistral': 886, 'n_tokens_neox': 824, 'n_words': 356}