Class AttributeTypeHelper


  • public class AttributeTypeHelper
    extends Object

    Utility class which helps creating sub types of AttributeType

    Since:
    1.0
    Author:
    Andreas Pointner
    • Constructor Detail

      • AttributeTypeHelper

        public AttributeTypeHelper()
    • Method Detail

      • string

        public science.aist.ocel.model.AttributeStringType string​(String key,
                                                                  String value)
        Creates a AttributeStringType with the given key and value
        Parameters:
        key - the key of the AttributeStringType AttributeType.setKey(String)
        value - the value of the AttributeStringType AttributeStringType.setValue(String)
        Returns:
        the created AttributeStringType
      • date

        public science.aist.ocel.model.AttributeDateType date​(String key,
                                                              Date date)
        Creates a AttributeDateType with the given key and date
        Parameters:
        key - the key of the AttributeDateType AttributeType.setKey(String)
        date - the date of the AttributeDateType AttributeDateType.setValue(XMLGregorianCalendar)
        Returns:
        the created AttributeDateType
      • list

        public science.aist.ocel.model.AttributeListType list​(String key,
                                                              Stream<science.aist.ocel.model.AttributeType> elements)
        Creates a AttributeListType and adds all elements from the given Stream to the element
        Parameters:
        key - the key of the AttributeListType AttributeType.setKey(String)
        elements - the elements that are added AttributableType.getStringOrDateOrInt()
        Returns:
        the created AttributeListType