public class PerspectiveBean extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<PerspectiveBean>, java.lang.Cloneable
Constructor and Description |
---|
PerspectiveBean()
Create user defined bean.
|
PerspectiveBean(java.lang.String name,
java.lang.String visibility)
Create user defined bean with default name, and visibility.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object.
|
int |
compareTo(PerspectiveBean o)
Compares this object with the specified object for order.
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.lang.String |
getName()
Return a name.
|
java.lang.String |
getVisibility()
Return a visibility.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
setName(java.lang.String name)
Set a name.
|
void |
setVisibility(java.lang.String visibility)
Set a visibility.
|
java.lang.String |
toString()
Return name of this descriptor.
|
public PerspectiveBean()
public PerspectiveBean(java.lang.String name, @CheckForNull java.lang.String visibility)
name
- namevisibility
- visibilitypublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to set@CheckForNull public java.lang.String getVisibility()
public void setVisibility(java.lang.String visibility)
visibility
- the visibility to setpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the object's class does not support the Cloneable
interface. Subclasses that override the clone
method can also throw this
exception to indicate that an instance cannot be cloned.Cloneable
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(PerspectiveBean o)
compareTo
in interface java.lang.Comparable<PerspectiveBean>
o
- the Object to be compared.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if this object is the same as the obj argument; false
otherwise.