Class YamlType

  • All Implemented Interfaces:
    Type

    public class YamlType
    extends java.lang.Object
    implements Type
    Implements Type for Yaml.
    Author:
    Holger Eichelberger, SSE
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<YamlField> fields  
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      YamlType()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<YamlField> getFields()
      Returns the fields of the type.
      java.lang.String getName()
      Returns the name of the type.
      void setFields​(java.util.List<YamlField> fields)
      Defines the fields of the type.
      void setName​(java.lang.String name)
      Defines the name of the type.
      • 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
      • fields

        private java.util.List<YamlField> fields
    • Constructor Detail

      • YamlType

        public YamlType()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: Type
        Returns the name of the type.
        Specified by:
        getName in interface Type
        Returns:
        the name as Java qualified name
      • getFields

        public java.util.List<YamlField> getFields()
        Description copied from interface: Type
        Returns the fields of the type.
        Specified by:
        getFields in interface Type
        Returns:
        the fields
      • setName

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

        public void setFields​(java.util.List<YamlField> fields)
        Defines the fields of the type.
        Parameters:
        fields - the fields