Class ResourceRefTypeImpl<T>

java.lang.Object
org.jboss.shrinkwrap.descriptor.impl.j2ee14.ResourceRefTypeImpl<T>
All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>, ResourceRefType<T>

public class ResourceRefTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ResourceRefType<T>
This class implements the resource-refType xsd type
  • Constructor Details

    • ResourceRefTypeImpl

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

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

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

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

      public ResourceRefType<T> resRefName(String resRefName)
      Sets the res-ref-name element
      Specified by:
      resRefName in interface ResourceRefType<T>
      Parameters:
      resRefName - the value for the element res-ref-name
      Returns:
      the current instance of ResourceRefType
    • getResRefName

      public String getResRefName()
      Returns the res-ref-name element
      Specified by:
      getResRefName in interface ResourceRefType<T>
      Returns:
      the node defined for the element res-ref-name
    • removeResRefName

      public ResourceRefType<T> removeResRefName()
      Removes the res-ref-name element
      Specified by:
      removeResRefName in interface ResourceRefType<T>
      Returns:
      the current instance of ResourceRefType
    • resType

      public ResourceRefType<T> resType(String resType)
      Sets the res-type element
      Specified by:
      resType in interface ResourceRefType<T>
      Parameters:
      resType - the value for the element res-type
      Returns:
      the current instance of ResourceRefType
    • getResType

      public String getResType()
      Returns the res-type element
      Specified by:
      getResType in interface ResourceRefType<T>
      Returns:
      the node defined for the element res-type
    • removeResType

      public ResourceRefType<T> removeResType()
      Removes the res-type element
      Specified by:
      removeResType in interface ResourceRefType<T>
      Returns:
      the current instance of ResourceRefType
    • resAuth

      public ResourceRefType<T> resAuth(ResAuthType resAuth)
      Sets the res-auth element
      Specified by:
      resAuth in interface ResourceRefType<T>
      Parameters:
      resAuth - the value for the element res-auth
      Returns:
      the current instance of ResourceRefType
    • resAuth

      public ResourceRefType<T> resAuth(String resAuth)
      Sets the res-auth element
      Specified by:
      resAuth in interface ResourceRefType<T>
      Parameters:
      resAuth - the value for the element res-auth
      Returns:
      the current instance of ResourceRefType
    • getResAuth

      public ResAuthType getResAuth()
      Returns the res-auth element
      Specified by:
      getResAuth in interface ResourceRefType<T>
      Returns:
      the value found for the element res-auth
    • getResAuthAsString

      public String getResAuthAsString()
      Returns the res-auth element
      Specified by:
      getResAuthAsString in interface ResourceRefType<T>
      Returns:
      the value found for the element res-auth
    • removeResAuth

      public ResourceRefType<T> removeResAuth()
      Removes the res-auth attribute
      Specified by:
      removeResAuth in interface ResourceRefType<T>
      Returns:
      the current instance of ResourceRefType
    • resSharingScope

      public ResourceRefType<T> resSharingScope(ResSharingScopeType resSharingScope)
      Sets the res-sharing-scope element
      Specified by:
      resSharingScope in interface ResourceRefType<T>
      Parameters:
      resSharingScope - the value for the element res-sharing-scope
      Returns:
      the current instance of ResourceRefType
    • resSharingScope

      public ResourceRefType<T> resSharingScope(String resSharingScope)
      Sets the res-sharing-scope element
      Specified by:
      resSharingScope in interface ResourceRefType<T>
      Parameters:
      resSharingScope - the value for the element res-sharing-scope
      Returns:
      the current instance of ResourceRefType
    • getResSharingScope

      public ResSharingScopeType getResSharingScope()
      Returns the res-sharing-scope element
      Specified by:
      getResSharingScope in interface ResourceRefType<T>
      Returns:
      the value found for the element res-sharing-scope
    • getResSharingScopeAsString

      public String getResSharingScopeAsString()
      Returns the res-sharing-scope element
      Specified by:
      getResSharingScopeAsString in interface ResourceRefType<T>
      Returns:
      the value found for the element res-sharing-scope
    • removeResSharingScope

      public ResourceRefType<T> removeResSharingScope()
      Removes the res-sharing-scope attribute
      Specified by:
      removeResSharingScope in interface ResourceRefType<T>
      Returns:
      the current instance of ResourceRefType
    • id

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

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

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