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

us.ihmc.scs2.definition.robot.urdf.items.URDFTexture Maven / Gradle / Ivy

package us.ihmc.scs2.definition.robot.urdf.items;

import java.util.Collections;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;

/**
 *  ROS Specification link.
 *
 * @author Sylvain Bertrand
 */
public class URDFTexture implements URDFItem, URDFFilenameHolder
{
   private String filename;

   @Override
   @XmlAttribute(name = "filename")
   public void setFilename(String filename)
   {
      this.filename = filename;
   }

   @Override
   public String getFilename()
   {
      return filename;
   }

   @Override
   public String getContentAsString()
   {
      return format("[filename: %s]", filename);
   }

   @Override
   public String toString()
   {
      return itemToString();
   }

   @Override
   public List getFilenameHolders()
   {
      return Collections.singletonList(this);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy