All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.ihmc.scs2.definition.yoVariable.YoVariableGroupDefinition Maven / Gradle / Ivy

package us.ihmc.scs2.definition.yoVariable;

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;

@XmlRootElement
public class YoVariableGroupDefinition
{
   private String name;
   private List variableNames;
   private List registryNames;

   public YoVariableGroupDefinition()
   {
   }

   @XmlAttribute
   public void setName(String name)
   {
      this.name = name;
   }

   public void addVariableName(String variableName)
   {
      if (variableNames == null)
         variableNames = new ArrayList<>();
      variableNames.add(variableName);
   }

   @XmlElement
   public void setVariableNames(List variableNames)
   {
      this.variableNames = variableNames;
   }

   public void addRegistryName(String registryName)
   {
      if (registryNames == null)
         registryNames = new ArrayList<>();
      registryNames.add(registryName);
   }

   @XmlElement
   public void setRegistryNames(List registryNames)
   {
      this.registryNames = registryNames;
   }

   public String getName()
   {
      return name;
   }

   public List getVariableNames()
   {
      return variableNames;
   }

   public List getRegistryNames()
   {
      return registryNames;
   }

   @Override
   public String toString()
   {
      return "[name=" + name + ", variableNames=" + variableNames + ", registryNames=" + registryNames + "]";
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy