| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
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 Platform Standard Ed. 6 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。