oracle.panama.model
Interface DeviceAddress

All Superinterfaces:
ModelObject, XMLObject

public interface DeviceAddress
extends ModelObject

A DeviceAddress is the device specific address like a phone or e-mail address.


Field Summary
TypeField
static int TYPEID
          The type id of this class.
static java.lang.String TYPENAME
          The constant class type identifier.
 
Method Summary
TypeMethod
 java.lang.String getAddress()
          Gets the address property value
 java.lang.String getCarrier()
          Gets the carrier property value
 java.lang.String getControlNumber()
          Gets the control number
 DeliveryType getDeliveryType()
          Gets the deliveryType property value
 int getMaxAlerts()
           
 java.lang.String getModel()
          Gets the model property value
 java.lang.String getName()
          Gets the name property value
 java.lang.String getNormalizedAddress()
          Gets the normailized address
 User getUser()
          Gets the user property value
 boolean isValid()
          Is the device address valid?
 void setAddress(DeliveryType deliveryType, java.lang.String address)
          Sets the address property value
 void setCarrier(java.lang.String carrier)
          Sets the carrier property value
 void setMaxAlerts(int maxAlerts)
          Sets the maxAlerts property value
 void setModel(java.lang.String model)
          Sets the model property value
 void setName(java.lang.String name)
          Sets the name property value
 void setUser(User user)
          Sets the user propery value
 boolean validate(java.lang.String controlNumber)
          Validate the device address
 
Methods inherited from interface oracle.panama.model.ModelObject
delete, getCreatedDate, getId, getLastModifiedDate, getTypeId, getTypeName, isSystem, setSystem, undoAll
 
Methods inherited from interface oracle.panama.model.XMLObject
setXML, toXML
 

Field Detail

TYPENAME

public static final java.lang.String TYPENAME
The constant class type identifier.

TYPEID

public static final int TYPEID
The type id of this class.
Method Detail

getName

public java.lang.String getName()
Gets the name property value
Specified by:
getName in interface ModelObject
Returns:
name of the device address

setName

public void setName(java.lang.String name)
Sets the name property value
Specified by:
setName in interface ModelObject
Parameters:
name - the new (name) property value

getUser

public User getUser()
Gets the user property value
Returns:
the User

setUser

public void setUser(User user)
Sets the user propery value
Parameters:
user - the new (user) property value

getMaxAlerts

public int getMaxAlerts()
Returns:
the maximum number of alert message the device address can receive

setMaxAlerts

public void setMaxAlerts(int maxAlerts)
Sets the maxAlerts property value
Parameters:
maxAlerts - the new property value

getCarrier

public java.lang.String getCarrier()
Gets the carrier property value

setCarrier

public void setCarrier(java.lang.String carrier)
Sets the carrier property value
Parameters:
carrier - the new property value

getDeliveryType

public DeliveryType getDeliveryType()
Gets the deliveryType property value
Returns:
the delivery type property value

getAddress

public java.lang.String getAddress()
Gets the address property value
Returns:
the address

setAddress

public void setAddress(DeliveryType deliveryType,
                       java.lang.String address)
Sets the address property value
Parameters:
address - the address
deliveryType - the new property value

getNormalizedAddress

public java.lang.String getNormalizedAddress()
Gets the normailized address
Returns:
the normalized Address

getModel

public java.lang.String getModel()
Gets the model property value
Returns:
the device model

setModel

public void setModel(java.lang.String model)
Sets the model property value
Parameters:
model - the model of the device

getControlNumber

public java.lang.String getControlNumber()
Gets the control number
Returns:
the control number

validate

public boolean validate(java.lang.String controlNumber)
Validate the device address
Parameters:
controlNumber - the control number
Returns:
true if the validation was successful

isValid

public boolean isValid()
Is the device address valid?
Returns:
true if the device address is already validated