Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.model
Interface Presets

All Superinterfaces:
ModelObject, XMLObject

public interface Presets
extends ModelObject

Presets are created by the factory methods in the PresetCategory or User objects.


Field Summary
static int TYPEID
          The type id of this class.
static java.lang.String TYPENAME
          The constant class type identifier

 

Method Summary
 java.lang.String getName()
          Gets the optional name of the presets.
 PresetCategory getPresetCategory()
          Gets the preset category.
 java.lang.String getPresetValue(java.lang.String name)
          Gets the value of the named attribute in the presets.
 Profile getProfile()
          Gets the profile that exclusively owns this presets.
 Service getService()
          Gets the service that creates this presets.
 User getUser()
          Gets the user who owns this presets.
 void setName(java.lang.String name)
          Sets the optional name of the presets.
 void setPresetValue(java.lang.String paramName, java.lang.String value)
          Sets the value of the named attribute in the presets.

 

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

TYPEID

public static final int TYPEID
The type id of this class.
See Also:
Constant Field Values

TYPENAME

public static final java.lang.String TYPENAME
The constant class type identifier
See Also:
Constant Field Values

Method Detail

getName

public java.lang.String getName()
Gets the optional name of the presets.
Specified by:
getName in interface ModelObject
Returns:
String the name of the object

getPresetCategory

public PresetCategory getPresetCategory()
Gets the preset category. Preset category is set when the presets is created by the factory method in the PresetCategory or User.

getPresetValue

public java.lang.String getPresetValue(java.lang.String name)
                                throws PanamaException
Gets the value of the named attribute in the presets.
Throws:
throws - the NameNotValidException if the attribute name is invalid
PanamaException

getProfile

public Profile getProfile()
Gets the profile that exclusively owns this presets. Profile is set when the presets is created by the factory method in User.

getService

public Service getService()
Gets the service that creates this presets. Service is set when the presets is created.

getUser

public User getUser()
Gets the user who owns this presets. User is set when the presets is created by the factory method in User.

setName

public void setName(java.lang.String name)
Sets the optional name of the presets.
Specified by:
setName in interface ModelObject
Parameters:
name - must be not null

setPresetValue

public void setPresetValue(java.lang.String paramName,
                           java.lang.String value)
                    throws PanamaException
Sets the value of the named attribute in the presets. If the format is specified for the name attribute, the value may be validated against the format.
Throws:
throws - the PanamaException if value does not match the format
PanamaException

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.