Class ValueField

    • Constructor Detail

      • ValueField

        public ValueField​(IAttribute<?> attribute)
        Create a value field matching an IAttribute.
        Parameters:
        attribute - attribute to match
      • ValueField

        public ValueField​(String identifier,
                          String name,
                          String description,
                          ContentType<?> contentType)
        Create a value field.
        Parameters:
        identifier - field ID
        name - human readable field name
        description - human readable field description
        contentType - content type of the field
    • Method Detail

      • getIdentifier

        public String getIdentifier()
      • getName

        public String getName()
      • getDescription

        public String getDescription()
      • getContentType

        public ContentType<?> getContentType()
      • matches

        public boolean matches​(IAttribute<?> a)
        Check if a value field matches an attribute. Note that only ID and content type is checked since human readable values may differ, especially due to translations.
        Parameters:
        a - attribute to match
        Returns:
        true if the value field and the attribute match, false if not