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 the
mail-sessionType xsd type-
Method Summary
Modifier and TypeMethodDescriptionCreates a newpropertyelementdescription(String description) Sets thedescriptionelementSets thefromelementReturns allpropertyelementsReturns thedescriptionelementgetFrom()Returns thefromelementgetHost()Returns thehostelementgetId()Returns theidattributegetName()Returns thenameelementIf not already created, a newpropertyelement will be created and returned.Returns thepasswordelementReturns thestore-protocolelementReturns thestore-protocol-classelementReturns thetransport-protocolelementReturns thetransport-protocol-classelementgetUser()Returns theuserelementSets thehostelementSets theidattributeSets thenameelementSets thepasswordelementRemoves allpropertyelementsRemoves thedescriptionelementRemoves thefromelementRemoves thehostelementremoveId()Removes theidattributeRemoves thenameelementRemoves thepasswordelementRemoves thestore-protocolelementRemoves thestore-protocol-classelementRemoves thetransport-protocolelementRemoves thetransport-protocol-classelementRemoves theuserelementstoreProtocol(String storeProtocol) Sets thestore-protocolelementstoreProtocolClass(String storeProtocolClass) Sets thestore-protocol-classelementtransportProtocol(String transportProtocol) Sets thetransport-protocolelementtransportProtocolClass(String transportProtocolClass) Sets thetransport-protocol-classelementSets theuserelementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
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
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
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
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
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
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
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
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
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
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<MailSessionType>
-
getAllProperty
List<PropertyType<MailSessionType<T>>> getAllProperty()Returns allpropertyelements- Returns:
- list of
property
-
removeAllProperty
MailSessionType<T> removeAllProperty()Removes allpropertyelements- Returns:
- the current instance of
PropertyType<MailSessionType>
-
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
-