Class MailSessionTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.javaee7.MailSessionTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,MailSessionType<T>
public class MailSessionTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, MailSessionType<T>
This class implements themail-sessionTypexsd type
-
-
Constructor Summary
Constructors Constructor Description MailSessionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)MailSessionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyType<MailSessionType<T>>createProperty()Creates a newpropertyelementMailSessionType<T>description(String description)Sets thedescriptionelementMailSessionType<T>from(String from)Sets thefromelementList<PropertyType<MailSessionType<T>>>getAllProperty()Returns allpropertyelementsStringgetDescription()Returns thedescriptionelementStringgetFrom()Returns thefromelementStringgetHost()Returns thehostelementStringgetId()Returns theidattributeStringgetName()Returns thenameelementPropertyType<MailSessionType<T>>getOrCreateProperty()If not already created, a newpropertyelement will be created and returned.StringgetPassword()Returns thepasswordelementStringgetStoreProtocol()Returns thestore-protocolelementStringgetStoreProtocolClass()Returns thestore-protocol-classelementStringgetTransportProtocol()Returns thetransport-protocolelementStringgetTransportProtocolClass()Returns thetransport-protocol-classelementStringgetUser()Returns theuserelementMailSessionType<T>host(String host)Sets thehostelementMailSessionType<T>id(String id)Sets theidattributeMailSessionType<T>name(String name)Sets thenameelementMailSessionType<T>password(String password)Sets thepasswordelementMailSessionType<T>removeAllProperty()Removes allpropertyelementsMailSessionType<T>removeDescription()Removes thedescriptionelementMailSessionType<T>removeFrom()Removes thefromelementMailSessionType<T>removeHost()Removes thehostelementMailSessionType<T>removeId()Removes theidattributeMailSessionType<T>removeName()Removes thenameelementMailSessionType<T>removePassword()Removes thepasswordelementMailSessionType<T>removeStoreProtocol()Removes thestore-protocolelementMailSessionType<T>removeStoreProtocolClass()Removes thestore-protocol-classelementMailSessionType<T>removeTransportProtocol()Removes thetransport-protocolelementMailSessionType<T>removeTransportProtocolClass()Removes thetransport-protocol-classelementMailSessionType<T>removeUser()Removes theuserelementMailSessionType<T>storeProtocol(String storeProtocol)Sets thestore-protocolelementMailSessionType<T>storeProtocolClass(String storeProtocolClass)Sets thestore-protocol-classelementMailSessionType<T>transportProtocol(String transportProtocol)Sets thetransport-protocolelementMailSessionType<T>transportProtocolClass(String transportProtocolClass)Sets thetransport-protocol-classelementTup()MailSessionType<T>user(String user)Sets theuserelement
-
-
-
Method Detail
-
description
public MailSessionType<T> description(String description)
Sets thedescriptionelement- Specified by:
descriptionin interfaceMailSessionType<T>- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
MailSessionType
-
getDescription
public String getDescription()
Returns thedescriptionelement- Specified by:
getDescriptionin interfaceMailSessionType<T>- Returns:
- the node defined for the element
description
-
removeDescription
public MailSessionType<T> removeDescription()
Removes thedescriptionelement- Specified by:
removeDescriptionin interfaceMailSessionType<T>- Returns:
- the current instance of
MailSessionType
-
name
public MailSessionType<T> name(String name)
Sets thenameelement- Specified by:
namein interfaceMailSessionType<T>- Parameters:
name- the value for the elementname- Returns:
- the current instance of
MailSessionType
-
getName
public String getName()
Returns thenameelement- Specified by:
getNamein interfaceMailSessionType<T>- Returns:
- the node defined for the element
name
-
removeName
public MailSessionType<T> removeName()
Removes thenameelement- Specified by:
removeNamein interfaceMailSessionType<T>- Returns:
- the current instance of
MailSessionType
-
storeProtocol
public MailSessionType<T> storeProtocol(String storeProtocol)
Sets thestore-protocolelement- Specified by:
storeProtocolin interfaceMailSessionType<T>- Parameters:
storeProtocol- the value for the elementstore-protocol- Returns:
- the current instance of
MailSessionType
-
getStoreProtocol
public String getStoreProtocol()
Returns thestore-protocolelement- Specified by:
getStoreProtocolin interfaceMailSessionType<T>- Returns:
- the node defined for the element
store-protocol
-
removeStoreProtocol
public MailSessionType<T> removeStoreProtocol()
Removes thestore-protocolelement- Specified by:
removeStoreProtocolin interfaceMailSessionType<T>- Returns:
- the current instance of
MailSessionType
-
storeProtocolClass
public MailSessionType<T> storeProtocolClass(String storeProtocolClass)
Sets thestore-protocol-classelement- Specified by:
storeProtocolClassin interfaceMailSessionType<T>- Parameters:
storeProtocolClass- the value for the elementstore-protocol-class- Returns:
- the current instance of
MailSessionType
-
getStoreProtocolClass
public String getStoreProtocolClass()
Returns thestore-protocol-classelement- Specified by:
getStoreProtocolClassin interfaceMailSessionType<T>- Returns:
- the node defined for the element
store-protocol-class
-
removeStoreProtocolClass
public MailSessionType<T> removeStoreProtocolClass()
Removes thestore-protocol-classelement- Specified by:
removeStoreProtocolClassin interfaceMailSessionType<T>- Returns:
- the current instance of
MailSessionType
-
transportProtocol
public MailSessionType<T> transportProtocol(String transportProtocol)
Sets thetransport-protocolelement- Specified by:
transportProtocolin interfaceMailSessionType<T>- Parameters:
transportProtocol- the value for the elementtransport-protocol- Returns:
- the current instance of
MailSessionType
-
getTransportProtocol
public String getTransportProtocol()
Returns thetransport-protocolelement- Specified by:
getTransportProtocolin interfaceMailSessionType<T>- Returns:
- the node defined for the element
transport-protocol
-
removeTransportProtocol
public MailSessionType<T> removeTransportProtocol()
Removes thetransport-protocolelement- Specified by:
removeTransportProtocolin interfaceMailSessionType<T>- Returns:
- the current instance of
MailSessionType
-
transportProtocolClass
public MailSessionType<T> transportProtocolClass(String transportProtocolClass)
Sets thetransport-protocol-classelement- Specified by:
transportProtocolClassin interfaceMailSessionType<T>- Parameters:
transportProtocolClass- the value for the elementtransport-protocol-class- Returns:
- the current instance of
MailSessionType
-
getTransportProtocolClass
public String getTransportProtocolClass()
Returns thetransport-protocol-classelement- Specified by:
getTransportProtocolClassin interfaceMailSessionType<T>- Returns:
- the node defined for the element
transport-protocol-class
-
removeTransportProtocolClass
public MailSessionType<T> removeTransportProtocolClass()
Removes thetransport-protocol-classelement- Specified by:
removeTransportProtocolClassin interfaceMailSessionType<T>- Returns:
- the current instance of
MailSessionType
-
host
public MailSessionType<T> host(String host)
Sets thehostelement- Specified by:
hostin interfaceMailSessionType<T>- Parameters:
host- the value for the elementhost- Returns:
- the current instance of
MailSessionType
-
getHost
public String getHost()
Returns thehostelement- Specified by:
getHostin interfaceMailSessionType<T>- Returns:
- the node defined for the element
host
-
removeHost
public MailSessionType<T> removeHost()
Removes thehostelement- Specified by:
removeHostin interfaceMailSessionType<T>- Returns:
- the current instance of
MailSessionType
-
user
public MailSessionType<T> user(String user)
Sets theuserelement- Specified by:
userin interfaceMailSessionType<T>- Parameters:
user- the value for the elementuser- Returns:
- the current instance of
MailSessionType
-
getUser
public String getUser()
Returns theuserelement- Specified by:
getUserin interfaceMailSessionType<T>- Returns:
- the node defined for the element
user
-
removeUser
public MailSessionType<T> removeUser()
Removes theuserelement- Specified by:
removeUserin interfaceMailSessionType<T>- Returns:
- the current instance of
MailSessionType
-
password
public MailSessionType<T> password(String password)
Sets thepasswordelement- Specified by:
passwordin interfaceMailSessionType<T>- Parameters:
password- the value for the elementpassword- Returns:
- the current instance of
MailSessionType
-
getPassword
public String getPassword()
Returns thepasswordelement- Specified by:
getPasswordin interfaceMailSessionType<T>- Returns:
- the node defined for the element
password
-
removePassword
public MailSessionType<T> removePassword()
Removes thepasswordelement- Specified by:
removePasswordin interfaceMailSessionType<T>- Returns:
- the current instance of
MailSessionType
-
from
public MailSessionType<T> from(String from)
Sets thefromelement- Specified by:
fromin interfaceMailSessionType<T>- Parameters:
from- the value for the elementfrom- Returns:
- the current instance of
MailSessionType
-
getFrom
public String getFrom()
Returns thefromelement- Specified by:
getFromin interfaceMailSessionType<T>- Returns:
- the node defined for the element
from
-
removeFrom
public MailSessionType<T> removeFrom()
Removes thefromelement- Specified by:
removeFromin interfaceMailSessionType<T>- Returns:
- the current instance of
MailSessionType
-
getOrCreateProperty
public PropertyType<MailSessionType<T>> getOrCreateProperty()
If not already created, a newpropertyelement will be created and returned. Otherwise, the first existingpropertyelement will be returned.- Specified by:
getOrCreatePropertyin interfaceMailSessionType<T>- Returns:
- the instance defined for the element
property
-
createProperty
public PropertyType<MailSessionType<T>> createProperty()
Creates a newpropertyelement- Specified by:
createPropertyin interfaceMailSessionType<T>- Returns:
- the new created instance of
PropertyType>
-
getAllProperty
public List<PropertyType<MailSessionType<T>>> getAllProperty()
Returns allpropertyelements- Specified by:
getAllPropertyin interfaceMailSessionType<T>- Returns:
- list of
property
-
removeAllProperty
public MailSessionType<T> removeAllProperty()
Removes allpropertyelements- Specified by:
removeAllPropertyin interfaceMailSessionType<T>- Returns:
- the current instance of
PropertyType>
-
id
public MailSessionType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceMailSessionType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
MailSessionType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceMailSessionType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public MailSessionType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceMailSessionType<T>- Returns:
- the current instance of
MailSessionType
-
-