oracle.ide.layout
Class ViewId
java.lang.Object
|
+--oracle.ide.layout.ViewId
- public class ViewId
- extends java.lang.Object
Class used to identify views. A ViewId
is made up of
view type and a view name. In general, the view type is the view class
and the view name is the subject of the view.
Constructor Summary |
protected |
ViewId()
Default constructor. |
|
ViewId(java.lang.String viewId)
Constructor. |
|
ViewId(java.lang.String type,
java.lang.String name)
Constructor. |
Method Summary |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
java.lang.String |
getType()
|
int |
hashCode()
|
boolean |
isValid()
|
java.lang.String |
toString()
|
static java.lang.String |
validate(java.lang.String name)
Method used to replace some characters in the name with the '-'
character. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DELIMETER
public static final java.lang.String DELIMETER
NAME_SEPARATOR
public static final char NAME_SEPARATOR
type
protected java.lang.String type
name
protected java.lang.String name
displayName
protected java.lang.String displayName
id
protected java.lang.String id
ViewId
public ViewId(java.lang.String type,
java.lang.String name)
- Constructor.
- Parameters:
type
- the view type. In general, the view type is the view class
name.name
- the view name. In general, the view name is a string
identifying the subject of this view.
ViewId
public ViewId(java.lang.String viewId)
- Constructor.
- Parameters:
viewId
- a string uniquely identifying a view. The view ID is
made up the the view type and the view name. In general, the view
type is the view class name, and the view name is a string identifying
the subject of this view. The type and name are separated by dot.
ViewId
protected ViewId()
- Default constructor.
getId
public java.lang.String getId()
- Returns:
- the string representation of this view id.
getType
public java.lang.String getType()
- Returns:
- the view type part of the view id.
getName
public java.lang.String getName()
- Returns:
- the name part of the view id. The name returned may not
be the exact same string specified during construction. The original
string may have been manipulated to replace the following
characters: '/', '\', '.', ':' with the character '-'.
getDisplayName
public java.lang.String getDisplayName()
- Returns:
- the name part exactly as specified in the constructor.
isValid
public boolean isValid()
- Returns:
true
if the view id is valid.
validate
public static java.lang.String validate(java.lang.String name)
- Method used to replace some characters in the name with the '-'
character.
Characters replaced include: '/', '\', '.', ':'.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object