Class LicenseTypeImpl<T>

java.lang.Object
org.jboss.shrinkwrap.descriptor.impl.connector16.LicenseTypeImpl<T>
All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>, LicenseType<T>

public class LicenseTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, LicenseType<T>
This class implements the licenseType xsd type
  • Constructor Details

    • LicenseTypeImpl

      public LicenseTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
    • LicenseTypeImpl

      public LicenseTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
  • Method Details

    • up

      public T up()
      Specified by:
      up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
    • description

      public LicenseType<T> description(String... values)
      Creates for all String objects representing description elements, a new description element
      Specified by:
      description in interface LicenseType<T>
      Parameters:
      values - list of description objects
      Returns:
      the current instance of LicenseType
    • getAllDescription

      public List<String> getAllDescription()
      Returns all description elements
      Specified by:
      getAllDescription in interface LicenseType<T>
      Returns:
      list of description
    • removeAllDescription

      public LicenseType<T> removeAllDescription()
      Removes the description element
      Specified by:
      removeAllDescription in interface LicenseType<T>
      Returns:
      the current instance of LicenseType
    • licenseRequired

      public LicenseType<T> licenseRequired(Boolean licenseRequired)
      Sets the license-required element
      Specified by:
      licenseRequired in interface LicenseType<T>
      Parameters:
      licenseRequired - the value for the element license-required
      Returns:
      the current instance of LicenseType
    • isLicenseRequired

      public Boolean isLicenseRequired()
      Returns the license-required element
      Specified by:
      isLicenseRequired in interface LicenseType<T>
      Returns:
      the node defined for the element license-required
    • removeLicenseRequired

      public LicenseType<T> removeLicenseRequired()
      Removes the license-required element
      Specified by:
      removeLicenseRequired in interface LicenseType<T>
      Returns:
      the current instance of LicenseType
    • id

      public LicenseType<T> id(String id)
      Sets the id attribute
      Specified by:
      id in interface LicenseType<T>
      Parameters:
      id - the value for the attribute id
      Returns:
      the current instance of LicenseType
    • getId

      public String getId()
      Returns the id attribute
      Specified by:
      getId in interface LicenseType<T>
      Returns:
      the value defined for the attribute id
    • removeId

      public LicenseType<T> removeId()
      Removes the id attribute
      Specified by:
      removeId in interface LicenseType<T>
      Returns:
      the current instance of LicenseType