Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.project.midp
Class DescriptorPropertyDescription

java.lang.Object
  extended by org.eclipse.mtj.core.project.midp.DescriptorPropertyDescription
Direct Known Subclasses:
ListDescriptorPropertyDescription

public class DescriptorPropertyDescription
extends Object

This class represents an application descriptor property description.

Since:
1.0
Restriction:
This class is not intended to be subclassed by clients.

Field Summary
static int DATATYPE_INT
          Integer property type
static int DATATYPE_LIST
          List property type
static int DATATYPE_STRING
          String property type
static int DATATYPE_URL
          URL property type
 
Constructor Summary
DescriptorPropertyDescription(String propertyName, String displayName, int dataType)
          Creates a new instance of DescriptorPropertyDescription.
 
Method Summary
 int getDataType()
          Returns the data type for this property.
 String getDisplayName()
          Returns the displayable name for this property.
 String getPageId()
          Returns the JAD editor page identifier for which this property is associated
 String getPropertyName()
          Returns the name of the underlying property
 String getSectionId()
          Returns the JAD editor page section identifier for which this property is associated
 void setDataType(int i)
          Sets the data type for this property.
 void setDisplayName(String string)
          Sets the displayable name for this property.
 void setPageId(String string)
          Sets the page ID for this property.
 void setSectionId(String string)
          Sets the page section ID for this property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATATYPE_INT

public static final int DATATYPE_INT
Integer property type

See Also:
Constant Field Values

DATATYPE_LIST

public static final int DATATYPE_LIST
List property type

See Also:
Constant Field Values

DATATYPE_STRING

public static final int DATATYPE_STRING
String property type

See Also:
Constant Field Values

DATATYPE_URL

public static final int DATATYPE_URL
URL property type

See Also:
Constant Field Values
Constructor Detail

DescriptorPropertyDescription

public DescriptorPropertyDescription(String propertyName,
                                     String displayName,
                                     int dataType)
Creates a new instance of DescriptorPropertyDescription.

Parameters:
propertyName - the name of the underlying property. This is case-sensitive and must not be null or an empty String "".
displayName - the displayable name for this property. This is case-sensitive and must not be null or an empty String "".
dataType - the data type for this property. Possible data types are:
Method Detail

getDataType

public int getDataType()
Returns the data type for this property.

Returns:
the data type. Possible data types are:

getDisplayName

public String getDisplayName()
Returns the displayable name for this property.

Returns:
the display name.

getPropertyName

public String getPropertyName()
Returns the name of the underlying property

Returns:
the property name.

getPageId

public String getPageId()
Returns the JAD editor page identifier for which this property is associated

Returns:
the page identifier.

getSectionId

public String getSectionId()
Returns the JAD editor page section identifier for which this property is associated

Returns:
the page section identifier.

setDataType

public void setDataType(int i)
Sets the data type for this property.

Parameters:
i - the data type. Possible data types are:

setDisplayName

public void setDisplayName(String string)
Sets the displayable name for this property.

Parameters:
string - the display name. This is case-sensitive and must not be null or an empty String "".

setPageId

public void setPageId(String string)
Sets the page ID for this property.

Parameters:
string - the page ID.

setSectionId

public void setSectionId(String string)
Sets the page section ID for this property.

Parameters:
string - the page section ID.

Mobile Tools for Java
Release 1.0