Interface MailSessionType<T>
-
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
MailSessionTypeImpl
public interface MailSessionType<T> extends org.jboss.shrinkwrap.descriptor.api.Child<T>This interface defines the contract for themail-sessionTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract 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-classelementMailSessionType<T>user(String user)Sets theuserelement
-
-
-
Method Detail
-
description
MailSessionType<T> description(String description)
Sets thedescriptionelement- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
MailSessionType
-
getDescription
String getDescription()
Returns thedescriptionelement- Returns:
- the node defined for the element
description
-
removeDescription
MailSessionType<T> removeDescription()
Removes thedescriptionelement- Returns:
- the current instance of
MailSessionType
-
name
MailSessionType<T> name(String name)
Sets thenameelement- Parameters:
name- the value for the elementname- Returns:
- the current instance of
MailSessionType
-
getName
String getName()
Returns thenameelement- Returns:
- the node defined for the element
name
-
removeName
MailSessionType<T> removeName()
Removes thenameelement- Returns:
- the current instance of
MailSessionType
-
storeProtocol
MailSessionType<T> storeProtocol(String storeProtocol)
Sets thestore-protocolelement- Parameters:
storeProtocol- the value for the elementstore-protocol- Returns:
- the current instance of
MailSessionType
-
getStoreProtocol
String getStoreProtocol()
Returns thestore-protocolelement- Returns:
- the node defined for the element
store-protocol
-
removeStoreProtocol
MailSessionType<T> removeStoreProtocol()
Removes thestore-protocolelement- Returns:
- the current instance of
MailSessionType
-
storeProtocolClass
MailSessionType<T> storeProtocolClass(String storeProtocolClass)
Sets thestore-protocol-classelement- Parameters:
storeProtocolClass- the value for the elementstore-protocol-class- Returns:
- the current instance of
MailSessionType
-
getStoreProtocolClass
String getStoreProtocolClass()
Returns thestore-protocol-classelement- Returns:
- the node defined for the element
store-protocol-class
-
removeStoreProtocolClass
MailSessionType<T> removeStoreProtocolClass()
Removes thestore-protocol-classelement- Returns:
- the current instance of
MailSessionType
-
transportProtocol
MailSessionType<T> transportProtocol(String transportProtocol)
Sets thetransport-protocolelement- Parameters:
transportProtocol- the value for the elementtransport-protocol- Returns:
- the current instance of
MailSessionType
-
getTransportProtocol
String getTransportProtocol()
Returns thetransport-protocolelement- Returns:
- the node defined for the element
transport-protocol
-
removeTransportProtocol
MailSessionType<T> removeTransportProtocol()
Removes thetransport-protocolelement- Returns:
- the current instance of
MailSessionType
-
transportProtocolClass
MailSessionType<T> transportProtocolClass(String transportProtocolClass)
Sets thetransport-protocol-classelement- Parameters:
transportProtocolClass- the value for the elementtransport-protocol-class- Returns:
- the current instance of
MailSessionType
-
getTransportProtocolClass
String getTransportProtocolClass()
Returns thetransport-protocol-classelement- Returns:
- the node defined for the element
transport-protocol-class
-
removeTransportProtocolClass
MailSessionType<T> removeTransportProtocolClass()
Removes thetransport-protocol-classelement- Returns:
- the current instance of
MailSessionType
-
host
MailSessionType<T> host(String host)
Sets thehostelement- Parameters:
host- the value for the elementhost- Returns:
- the current instance of
MailSessionType
-
getHost
String getHost()
Returns thehostelement- Returns:
- the node defined for the element
host
-
removeHost
MailSessionType<T> removeHost()
Removes thehostelement- Returns:
- the current instance of
MailSessionType
-
user
MailSessionType<T> user(String user)
Sets theuserelement- Parameters:
user- the value for the elementuser- Returns:
- the current instance of
MailSessionType
-
getUser
String getUser()
Returns theuserelement- Returns:
- the node defined for the element
user
-
removeUser
MailSessionType<T> removeUser()
Removes theuserelement- Returns:
- the current instance of
MailSessionType
-
password
MailSessionType<T> password(String password)
Sets thepasswordelement- Parameters:
password- the value for the elementpassword- Returns:
- the current instance of
MailSessionType
-
getPassword
String getPassword()
Returns thepasswordelement- Returns:
- the node defined for the element
password
-
removePassword
MailSessionType<T> removePassword()
Removes thepasswordelement- Returns:
- the current instance of
MailSessionType
-
from
MailSessionType<T> from(String from)
Sets thefromelement- Parameters:
from- the value for the elementfrom- Returns:
- the current instance of
MailSessionType
-
getFrom
String getFrom()
Returns thefromelement- Returns:
- the node defined for the element
from
-
removeFrom
MailSessionType<T> removeFrom()
Removes thefromelement- Returns:
- the current instance of
MailSessionType
-
getOrCreateProperty
PropertyType<MailSessionType<T>> getOrCreateProperty()
If not already created, a newpropertyelement will be created and returned. Otherwise, the first existingpropertyelement will be returned.- Returns:
- the instance defined for the element
property
-
createProperty
PropertyType<MailSessionType<T>> createProperty()
Creates a newpropertyelement- Returns:
- the new created instance of
PropertyType>
-
getAllProperty
List<PropertyType<MailSessionType<T>>> getAllProperty()
Returns allpropertyelements- Returns:
- list of
property
-
removeAllProperty
MailSessionType<T> removeAllProperty()
Removes allpropertyelements- Returns:
- the current instance of
PropertyType>
-
id
MailSessionType<T> id(String id)
Sets theidattribute- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
MailSessionType
-
getId
String getId()
Returns theidattribute- Returns:
- the value defined for the attribute
id
-
removeId
MailSessionType<T> removeId()
Removes theidattribute- Returns:
- the current instance of
MailSessionType
-
-