Class XenonPropertyDescription


  • public class XenonPropertyDescription
    extends java.lang.Object

    XenonPropertyDescription contains all necessary information about a property that is recognized by Xenon

    Each XenonPropertyDescription contains the following information:

    • A name that uniquely identifies the property. This name should be used as a key when passing properties to Xenon in a Map.
    • A (human-readable) description that explains the use of the property.
    • The type of values that are accepted for the property (one of the XenonPropertyDescription.Type enum). Even though it is customary to pass the values of properties as Strings, the user should ensure the values can be converted into the expected type.
    • The default value of the property.
    Since:
    1.0
    • Constructor Detail

      • XenonPropertyDescription

        public XenonPropertyDescription​(java.lang.String name,
                                        XenonPropertyDescription.Type type,
                                        java.lang.String defaultValue,
                                        java.lang.String description)
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the property.
        Returns:
        the name of the property.
      • getDefaultValue

        public java.lang.String getDefaultValue()
        Returns the default value for this property.
        Returns:
        the default value for this property or null is no default is set.
      • getDescription

        public java.lang.String getDescription()
        Returns a human readable description of this property.
        Returns:
        a human readable description of this property.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object