public final class Element extends Object implements DTDConstants, Serializable
DTD
, AttributeList
Modifier and Type | Field and Description |
---|---|
AttributeList |
atts |
ContentModel |
content |
Object |
data
用于存储用户数据的字段。
|
BitSet |
exclusions |
BitSet |
inclusions |
int |
index |
String |
name |
boolean |
oEnd |
boolean |
oStart |
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
Modifier and Type | Method and Description |
---|---|
AttributeList |
getAttribute(String name)
通过名称获取属性。
|
AttributeList |
getAttributeByValue(String name)
通过值获取属性。
|
AttributeList |
getAttributes()
获取属性。
|
ContentModel |
getContent()
获取内容模型
|
int |
getIndex()
获取索引。
|
String |
getName()
获取元素的名称。
|
int |
getType()
获取类型。
|
boolean |
isEmpty()
检查是否空
|
static int |
name2type(String nm) |
boolean |
omitEnd()
如果结束标签可以省略,返回true。
|
boolean |
omitStart()
如果可以省略起始标签,则返回true。
|
String |
toString()
转换成字符串。
|
public int index
public String name
public boolean oStart
public boolean oEnd
public BitSet inclusions
public BitSet exclusions
public int type
public ContentModel content
public AttributeList atts
public Object data
public String getName()
public boolean omitStart()
public boolean omitEnd()
public int getType()
public ContentModel getContent()
public AttributeList getAttributes()
public int getIndex()
public boolean isEmpty()
public AttributeList getAttribute(String name)
public AttributeList getAttributeByValue(String name)
public static int name2type(String nm)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.