Class ProfileDataCollection.Attribute

    • Constructor Detail

      • Attribute

        public Attribute​(String name,
                         String type,
                         boolean serialised)

        Create a new profile table attribute. No serialisation version is set by this constructor.

        Parameters:
        name - the name of the attribute.
        type - the type of the attribute. This should be specified in declarative form, eg. java.lang.String[]
        serialised - flag indicating whether the values for this attribute in each profile will (or have been) exported using a generic serialisation codec.
        Throws:
        NullPointerException - if name or type is null.
      • Attribute

        public Attribute​(String name,
                         String type,
                         boolean serialised,
                         String serialisationVersion)

        Create a new profile table attribute.

        Parameters:
        name - the name of the attribute.
        type - the type of the attribute. This should be specified in declarative form, eg. java.lang.String[]
        serialised - flag indicating whether the values for this attribute in each profile will (or have been) exported using a generic serialisation codec.
        serialisationVersion - serialisation version qualifier
        Throws:
        NullPointerException - if name or type is null.
    • Method Detail

      • getName

        public String getName()

        Get the name of the profile attribute.

        Returns:
        the name of the profile attribute.
      • getType

        public String getType()

        Get the Java type of the profile attribute.

        Returns:
        the type of the profile attribute.
      • isSerialised

        public boolean isSerialised()

        Determine if profile data for this attribute is serialised.

        Returns:
        true if the data is serialised, false otherwise.
      • getSerialisationVersion

        public String getSerialisationVersion()

        Get the attribute serialisation version.

        Returns:
        the attribute serialisation version.