Class ThingModelElement

java.lang.Object
io.github.webbasedwodt.common.ThingModelElement

public class ThingModelElement extends Object
Class representing a Thing Model field.
  • Constructor Details

    • ThingModelElement

      public ThingModelElement(String field, Optional<String> feature, Optional<String> domainTag)
      Default constructor.
      Parameters:
      field - the thing model field
      feature - the thing feature, if present
      domainTag - the domain tag, if present
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getField

      public String getField()
      Get the field name.
      Returns:
      the field name
    • getFeature

      public Optional<String> getFeature()
      Get the feature, if present.
      Returns:
      an optional for the feature
    • getDomainTag

      public Optional<String> getDomainTag()
      Get the domain tag, if present.
      Returns:
      an optional for the domain tag