net.sf.magicproject.tools
Class PropertyModel
java.lang.Object
net.sf.magicproject.tools.PropertyModel
- All Implemented Interfaces:
- java.lang.Comparable<PropertyModel>
public class PropertyModel
- extends java.lang.Object
- implements java.lang.Comparable<PropertyModel>
- Since:
- 0.92
- Author:
- Fabrice Daugan
Field Summary |
int |
id
The property key value. |
java.lang.String |
name
The translated property name, is also thekey for the sort. |
Constructor Summary |
PropertyModel(java.lang.String propertyName,
int propertyId)
Creates a new instance of this class
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
name
public java.lang.String name
- The translated property name, is also thekey for the sort.
id
public int id
- The property key value.
PropertyModel
public PropertyModel(java.lang.String propertyName,
int propertyId)
- Creates a new instance of this class
- Parameters:
propertyName
- the translated property name, is also thekey for the sort.propertyId
- the property key value.
compareTo
public int compareTo(PropertyModel arg0)
- Specified by:
compareTo
in interface java.lang.Comparable<PropertyModel>
equals
public boolean equals(java.lang.Object arg0)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2003-2007 Magic-Project. All Rights Reserved.