org.encog.parse.tags
| Modifier and Type | Class and Description |
|---|---|
static class |
Tag.Type
Tag types.
|
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the name, type and attributes.
|
Tag |
clone() |
int |
getAttributeInt(String attributeId)
Get the specified attribute as an integer.
|
Map<String,String> |
getAttributes()
Get a map of all attributes.
|
String |
getAttributeValue(String name)
Get the value of the specified attribute.
|
String |
getName() |
Tag.Type |
getType() |
void |
setAttribute(String name,
String value)
Set a HTML attribute.
|
void |
setName(String s)
Set the tag name.
|
void |
setType(Tag.Type type)
Set the tag type.
|
String |
toString()
Convert this tag back into string form, with the beginning < and ending
>.
|
public void clear()
public int getAttributeInt(String attributeId)
attributeId - The attribute name.public Map<String,String> getAttributes()
public String getAttributeValue(String name)
name - The name of an attribute.public String getName()
public Tag.Type getType()
public void setAttribute(String name, String value)
name - The name of the attribute.value - The value of the attribute.public void setName(String s)
s - The name.public void setType(Tag.Type type)
type - The tag type.Copyright © 2014. All Rights Reserved.