|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.common.object.ObjectDefinitionImpl com.metamatrix.common.tree.directory.FileDefinitionImpl
public class FileDefinitionImpl
Constructor Summary | |
---|---|
FileDefinitionImpl()
Create an empty definition object with all defaults. |
|
FileDefinitionImpl(java.lang.String name)
Create a definition object with the specified set of attributes. |
|
FileDefinitionImpl(java.lang.String name,
java.lang.String displayName)
Create a definition object with the specified set of attributes. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
Compares this object to another. |
boolean |
equals(java.lang.Object obj)
Returns true if the specified object is semantically equal to this instance. |
Methods inherited from class com.metamatrix.common.object.ObjectDefinitionImpl |
---|
clone, computeDisplayName, computePluralDisplayName, getDisplayName, getName, getPluralDisplayName, getShortDescription, getShortDisplayName, hashCode, setDisplayName, setName, setPluralDisplayName, setShortDescription, setShortDisplayName, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.metamatrix.common.object.ObjectDefinition |
---|
getDisplayName, getName, getPluralDisplayName, getShortDescription, getShortDisplayName, toString |
Constructor Detail |
---|
public FileDefinitionImpl()
public FileDefinitionImpl(java.lang.String name)
name
- the namepublic FileDefinitionImpl(java.lang.String name, java.lang.String displayName)
name
- the nameMethod Detail |
---|
public int compareTo(java.lang.Object obj)
Note: this method is consistent with
equals()
, meaning that
(compare(x, y)==0) == (x.equals(y))
.
compareTo
in interface ObjectDefinition
compareTo
in interface java.lang.Comparable
compareTo
in class ObjectDefinitionImpl
obj
- the object that this instance is to be compared to.
java.lang.IllegalArgumentException
- if the specified object reference is null
java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this instance.public boolean equals(java.lang.Object obj)
compareTo()
.
equals
in interface ObjectDefinition
equals
in class ObjectDefinitionImpl
obj
- the object that this instance is to be compared to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |