content
public ContentModel content
コンテンツ・モデル
Serializable
, DTDConstants
public final class Element extends Object implements DTDConstants, Serializable
DTD
, AttributeList
修飾子と型 | フィールド | 説明 |
---|---|---|
AttributeList |
atts |
属性を指定します
|
ContentModel |
content |
コンテンツ・モデル
|
Object |
data |
ユーザー・データを格納するフィールドです。
|
BitSet |
exclusions |
要素の内部で発生してはならない要素のセット
|
BitSet |
inclusions |
要素の内部で発生する要素のセット
|
int |
index |
要素インデックス
|
String |
name |
要素の名前です
|
boolean |
oEnd |
終了タグを省略できる場合は
true |
boolean |
oStart |
開始タグを省略できる場合は
true |
int |
type |
要素タイプ。
|
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
修飾子と型 | メソッド | 説明 |
---|---|---|
AttributeList |
getAttribute(String name) |
属性を名前で取得します。
|
AttributeList |
getAttributeByValue(String value) |
属性を値で取得します。
|
AttributeList |
getAttributes() |
属性を取得します。
|
ContentModel |
getContent() |
コンテンツ・モデルを返します。
|
int |
getIndex() |
インデックスを取得します。
|
String |
getName() |
要素の名前を取得します。
|
int |
getType() |
型を取得します。
|
boolean |
isEmpty() |
空かどうかを判定します。
|
static int |
name2type(String nm) |
nm を型に変換します。 |
boolean |
omitEnd() |
終了タグを省略できる場合にtrueを返します。
|
boolean |
omitStart() |
開始タグを省略できる場合にtrueを返します。
|
String |
toString() |
文字列に変換します。
|
true
true
true
true
AttributeList
name
- 属性名name
のAttributeList
value
- 値の文字列表現value
のAttributeList
nm
を型に変換します。 nm
がCDATA、RCDATA、EMPTYまたはANYと等しい場合は適切なDTDConstantsを返し、そうでない場合は0を返します。 nm
- 名前nm
がCDATA、RCDATA、EMPTYまたはANYと等しい場合は適切なDTDConstants、そうでない場合は0。