Class Property.Builder

  • Enclosing class:
    Property

    public static class Property.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(java.lang.String name,
                       java.lang.String type)
        Instantiates a new builder with required properties.
        Parameters:
        name - the name
        type - the type
    • Method Detail

      • build

        public Property build()
        Builds a Property.
        Returns:
        the new Property instance
      • addXEnum

        public Property.Builder addXEnum​(java.lang.String xEnum)
        Adds an xEnum to xEnum.
        Parameters:
        xEnum - the new xEnum
        Returns:
        the Property builder
      • name

        public Property.Builder name​(java.lang.String name)
        Set the name.
        Parameters:
        name - the name
        Returns:
        the Property builder
      • value

        public Property.Builder value​(java.lang.String value)
        Set the value.
        Parameters:
        value - the value
        Returns:
        the Property builder
      • href

        public Property.Builder href​(java.lang.String href)
        Set the href.
        Parameters:
        href - the href
        Returns:
        the Property builder
      • xEnum

        public Property.Builder xEnum​(java.util.List<java.lang.String> xEnum)
        Set the xEnum. Existing xEnum will be replaced.
        Parameters:
        xEnum - the xEnum
        Returns:
        the Property builder
      • type

        public Property.Builder type​(java.lang.String type)
        Set the type.
        Parameters:
        type - the type
        Returns:
        the Property builder
      • path

        public Property.Builder path​(java.lang.String path)
        Set the path.
        Parameters:
        path - the path
        Returns:
        the Property builder