|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.text.html.parser.Entity
public final class Entity
エンティティは、ENTITY 構成要素を使って DTD に記述されます。エンティティは、エンティティのタイプおよび値を定義します。
DTD| フィールドの概要 | |
|---|---|
char[] |
data
|
String |
name
|
int |
type
|
| インタフェース javax.swing.text.html.parser.DTDConstants から継承されたフィールド |
|---|
ANY, CDATA, CONREF, CURRENT, DEFAULT, EMPTY, ENDTAG, ENTITIES, ENTITY, FIXED, GENERAL, ID, IDREF, IDREFS, IMPLIED, MD, MODEL, MS, NAME, NAMES, NMTOKEN, NMTOKENS, NOTATION, NUMBER, NUMBERS, NUTOKEN, NUTOKENS, PARAMETER, PI, PUBLIC, RCDATA, REQUIRED, SDATA, STARTTAG, SYSTEM |
| コンストラクタの概要 | |
|---|---|
Entity(String name,
int type,
char[] data)
エンティティを作成します。 |
|
| メソッドの概要 | |
|---|---|
char[] |
getData()
data を返します。 |
String |
getName()
エンティティの名前を取得します。 |
String |
getString()
データを String として返します。 |
int |
getType()
エンティティのタイプを取得します。 |
boolean |
isGeneral()
一般エンティティの場合に true を返します。 |
boolean |
isParameter()
パラメータエンティティの場合に true を返します。 |
static int |
name2type(String nm)
nm 文字列を対応するエンティティタイプに変換します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public String name
public int type
public char[] data
| コンストラクタの詳細 |
|---|
public Entity(String name,
int type,
char[] data)
name - エンティティの名前type - エンティティのタイプdata - データの char 配列| メソッドの詳細 |
|---|
public String getName()
String)public int getType()
public boolean isParameter()
true を返します。
truepublic boolean isGeneral()
true を返します。
truepublic char[] getData()
data を返します。
datapublic String getString()
String として返します。
String)public static int name2type(String nm)
nm 文字列を対応するエンティティタイプに変換します。文字列に対応するエンティティタイプがない場合、「CDATA」に対応するタイプが返されます。有効なエンティティタイプは PUBLIC、CDATA、SDATA、PI、STARTTAG、ENDTAG、MS、MD、SYSTEM です。
nm - 変換される文字列
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。