org.jboss.shrinkwrap.descriptor.api.connector15.ConnectorDescriptor Maven / Gradle / Ivy
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
package org.jboss.shrinkwrap.descriptor.api.connector15;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.connector15.LicenseType;
import org.jboss.shrinkwrap.descriptor.api.connector15.ResourceadapterType;
import org.jboss.shrinkwrap.descriptor.api.j2ee14.IconType;
import org.jboss.shrinkwrap.descriptor.api.Descriptor;
import org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace;
import org.jboss.shrinkwrap.descriptor.api.connector.*;
/**
*
* This deployment descriptor provides the functionalities as described in the specification
*
* Example:
*
*
* ConnectorDescriptor descriptor = Descriptors.create(ConnectorDescriptor.class);
*
*
*
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public interface ConnectorDescriptor extends Descriptor, DescriptorNamespace,
ConnectorCommonDescriptor> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectorDescriptor ElementName: xsd:string ElementType : description
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Creates for all String objects representing description
elements,
* a new description
element
* @param values list of description
objects
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor description(String ... values);
/**
* Returns all description
elements
* @return list of description
*/
public List getAllDescription();
/**
* Removes the description
element
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor removeAllDescription();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectorDescriptor ElementName: xsd:token ElementType : display-name
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Creates for all String objects representing display-name
elements,
* a new display-name
element
* @param values list of display-name
objects
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor displayName(String ... values);
/**
* Returns all display-name
elements
* @return list of display-name
*/
public List getAllDisplayName();
/**
* Removes the display-name
element
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor removeAllDisplayName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectorDescriptor ElementName: j2ee:iconType ElementType : icon
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new icon
element will be created and returned.
* Otherwise, the first existing icon
element will be returned.
* @return the instance defined for the element icon
*/
public IconType getOrCreateIcon();
/**
* Creates a new icon
element
* @return the new created instance of IconType
*/
public IconType createIcon();
/**
* Returns all icon
elements
* @return list of icon
*/
public List> getAllIcon();
/**
* Removes all icon
elements
* @return the current instance of IconType
*/
public ConnectorDescriptor removeAllIcon();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectorDescriptor ElementName: xsd:string ElementType : vendor-name
// MaxOccurs: - isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the vendor-name
element
* @param vendorName the value for the element vendor-name
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor vendorName(String vendorName);
/**
* Returns the vendor-name
element
* @return the node defined for the element vendor-name
*/
public String getVendorName();
/**
* Removes the vendor-name
element
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor removeVendorName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectorDescriptor ElementName: xsd:string ElementType : eis-type
// MaxOccurs: - isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the eis-type
element
* @param eisType the value for the element eis-type
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor eisType(String eisType);
/**
* Returns the eis-type
element
* @return the node defined for the element eis-type
*/
public String getEisType();
/**
* Removes the eis-type
element
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor removeEisType();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectorDescriptor ElementName: xsd:string ElementType : resourceadapter-version
// MaxOccurs: - isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the resourceadapter-version
element
* @param resourceadapterVersion the value for the element resourceadapter-version
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor resourceadapterVersion(String resourceadapterVersion);
/**
* Returns the resourceadapter-version
element
* @return the node defined for the element resourceadapter-version
*/
public String getResourceadapterVersion();
/**
* Removes the resourceadapter-version
element
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor removeResourceadapterVersion();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectorDescriptor ElementName: j2ee:licenseType ElementType : license
// MaxOccurs: - isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new license
element with the given value will be created.
* Otherwise, the existing license
element will be returned.
* @return a new or existing instance of LicenseType
*/
public LicenseType getOrCreateLicense();
/**
* Removes the license
element
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor removeLicense();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectorDescriptor ElementName: j2ee:resourceadapterType ElementType : resourceadapter
// MaxOccurs: - isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new resourceadapter
element with the given value will be created.
* Otherwise, the existing resourceadapter
element will be returned.
* @return a new or existing instance of ResourceadapterType
*/
public ResourceadapterType getOrCreateResourceadapter();
/**
* Removes the resourceadapter
element
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor removeResourceadapter();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectorDescriptor ElementName: xsd:decimal ElementType : version
// MaxOccurs: - isGeneric: false isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
public static final String VERSION = "1.5";
/**
* Sets the version
attribute
* @param version the value for the attribute version
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor version(String version);
/**
* Returns the version
attribute
* @return the value defined for the attribute version
*/
public String getVersion();
/**
* Removes the version
attribute
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor removeVersion();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectorDescriptor ElementName: xsd:ID ElementType : id
// MaxOccurs: - isGeneric: false isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the id
attribute
* @param id the value for the attribute id
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor id(String id);
/**
* Returns the id
attribute
* @return the value defined for the attribute id
*/
public String getId();
/**
* Removes the id
attribute
* @return the current instance of ConnectorDescriptor
*/
public ConnectorDescriptor removeId();
}