Class 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 Detail

      • 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 Detail

      • 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
      • 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
      • 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