public class Element
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
com.google.gson.JsonObject |
attributes
The attributes of the element.
|
java.lang.String |
dataString |
java.lang.String |
id
The id of the element.
|
int |
length
The size of the data portion.
|
java.lang.String |
type
The type of the element.
|
| 构造器和说明 |
|---|
Element(java.lang.String id,
java.lang.String type) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
excludeData() |
byte[] |
getData() |
void |
setAttribute(java.lang.String name,
java.lang.String att)
A convenience method that sets an attribute on the object.
|
void |
setData(byte[] data) |
java.lang.String |
toString() |
public java.lang.String id
public int length
public java.lang.String type
public com.google.gson.JsonObject attributes
public java.lang.String dataString
public void setData(byte[] data)
public void excludeData()
public byte[] getData()
public void setAttribute(java.lang.String name,
java.lang.String att)
name - the name of the attributeatt - the value to set as a Stringpublic java.lang.String toString()
toString 在类中 java.lang.Object