|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.fiverworks.xone.model.XoneNode
Xoneのノード(フォルダやオブジェクトのメタ情報)を表すクラスです。XoneFolderとXoneObjectInfoのスーパークラスです。
フィールドの概要 | |
protected static String |
CLASS_NAME
|
protected String |
className
|
static String |
DB_DELETE
データベース上で削除されたことを表します。 |
static String |
DB_OUT
データベース上で無効であることを表します。 |
static String |
DB_UNLOCK
データベース上で通常の状態(ロックも削除もされていない)を表します。 |
static int |
DELETE
ノードの状態を表し、DELETEは削除されている状態です。 |
protected String |
hint
|
protected static String |
HINT
|
protected static String |
LOCKED_USER
|
protected String |
name
|
protected static String |
NAME
|
static int |
OUT
ノードの状態を表し、OUTは無効であることを示す状態です。 |
protected String |
parent
|
protected static String |
PARENT
|
protected int |
parentFolderId
|
protected static ResourceBundle |
rb
|
static String |
SEPARATOR
パス区切り文字です。 |
protected int |
status
|
protected static String |
STATUS
|
protected Timestamp |
timestamp
|
protected static String |
TIMESTAMP
|
protected String |
type
|
protected static String |
TYPE
|
static int |
UNLOCK
ノードの状態を表し、UNLOCKは通常の状態です。 |
コンストラクタの概要 | |
protected |
XoneNode()
XoneNodeのインスタンスを生成します。 |
メソッドの概要 | |
static void |
checkLegalPath(String path)
指定された文字列が正しいパスかどうか調べます。 |
int |
compareTo(Object o)
指定されたオブジェクトと比較します。 |
String |
getHint()
ヒントを取得します。 |
static String |
getLastName(String path)
指定されたパスから、SEPARATORで区切られた最後の名前の部分だけを取得します。 |
static String |
getLegalPath(String path)
指定されたパスの最後が/の場合は、これを取り去ります。 |
static String |
getLegalPath(String parent,
String name)
親フォルダと名前から正しいパスを取得します。 |
String |
getName()
ノードの名前を取得します。 |
String |
getParent()
親のパスを取得します。 |
static String |
getParent(String path)
指定されたパスから親のパスを取得します。 |
String |
getPath()
パスを取得します。 |
static String[] |
getPathElements(String path)
指定されたパスから、個々の要素の配列を返します。 |
int |
getStatus()
ノードの状態を取得します。 |
String |
getStatusString()
現在の状態(UNLOCK,DELETE,OUT)に対応する文字列を取得します。 |
static String |
getStatusString(int status)
指定された状態に対応する文字列を取得します。 |
Timestamp |
getTimestamp()
作成または更新した日時を取得します。 |
String |
getType()
ノードのタイプを取得します。 |
boolean |
isAnyInstance()
ノードがオブジェクトでAnyインスタンスかどうか返します。 |
boolean |
isClass()
ノードがオブジェクトでクラスかどうか返します。 |
boolean |
isInstance()
ノードがオブジェクトでインスタンスかどうか返します。 |
boolean |
isLeaf()
リーフ(子を持てない)かどうかを返します。 |
static boolean |
isLegalPath(String path)
指定された文字列が正しいパスかどうか返します。 |
void |
setHint(String hint)
ヒントを設定します。 |
abstract String |
toFullString()
文字列表現を取得します。 |
String |
toString()
ノード名を返します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
インタフェース com.fiverworks.xone.model.Transformable から継承したメソッド |
set, toXoneObject |
フィールドの詳細 |
protected static final ResourceBundle rb
protected String name
protected Timestamp timestamp
protected String type
protected String className
protected int status
protected String hint
protected int parentFolderId
protected String parent
protected static final String NAME
protected static final String TYPE
protected static final String TIMESTAMP
protected static final String CLASS_NAME
protected static final String STATUS
protected static final String LOCKED_USER
protected static final String PARENT
protected static final String HINT
public static final String DB_UNLOCK
public static final String DB_DELETE
public static final String DB_OUT
public static final int UNLOCK
public static final int DELETE
public static final int OUT
public static final String SEPARATOR
コンストラクタの詳細 |
protected XoneNode()
メソッドの詳細 |
public String getName()
public int getStatus()
public Timestamp getTimestamp()
public String getType()
public boolean isClass()
public boolean isInstance()
public boolean isAnyInstance()
public String getParent()
public String getPath()
public String getStatusString()
public static String getStatusString(int status)
getStatusString
を参照してください。
status
- 状態
public static void checkLegalPath(String path)
isLegalPath
の結果がfalseのときは例外を生成します。
path
- 調べるパス
XoneRuntimeException
- pathが不正な場合public static boolean isLegalPath(String path)
path
- 調べるパス
public static String getLegalPath(String parent, String name)
parent
- 親フォルダname
- 名前
XoneRuntimeException
- pathまたはnameが不正な場合public static String getLegalPath(String path)
path
- パス
XoneRuntimeException
- pathが不正な場合public static String getLastName(String path)
path
- パス(nullの場合はnullを返す。また、SEPARATORが1つもなければpathと同じ文字列を返す)
public static String getParent(String path)
path
- パス(nullの場合はnullを返す。また、SEPARATORが1つもない場合もnullを返す)
public static String[] getPathElements(String path)
path
- パス(nullの場合は長さ0の配列を返す)
public boolean isLeaf()
public String toString()
public abstract String toFullString()
public String getHint()
public void setHint(String hint)
hint
- ヒントの新しい値public int compareTo(Object o)
Comparable
内の compareTo
o
- 比較するオブジェクト
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |