Class YamlField

  • All Implemented Interfaces:
    Field

    public class YamlField
    extends java.lang.Object
    implements Field
    Implements Field for YAML.
    Author:
    Holger Eichelberger, SSE
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
      private java.lang.String type  
    • Constructor Summary

      Constructors 
      Constructor Description
      YamlField()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns the name of the data.
      java.lang.String getType()
      Returns the type of the data.
      void setName​(java.lang.String name)
      Defines the name of the attribute.
      void setType​(java.lang.String type)
      Defines the type of the attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
      • type

        private java.lang.String type
    • Constructor Detail

      • YamlField

        public YamlField()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: Field
        Returns the name of the data.
        Specified by:
        getName in interface Field
        Returns:
        the name
      • getType

        public java.lang.String getType()
        Description copied from interface: Field
        Returns the type of the data.
        Specified by:
        getType in interface Field
        Returns:
        the type as qualified Java name
      • setName

        public void setName​(java.lang.String name)
        Defines the name of the attribute. [required by SnakeYaml]
        Parameters:
        name - the name
      • setType

        public void setType​(java.lang.String type)
        Defines the type of the attribute. [required by SnakeYaml]
        Parameters:
        type - the type as qualified Java name