|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.parse.tags.Tag
public class Tag
HTMLTag: This class holds a single HTML tag. This class subclasses the AttributeList class. This allows the HTMLTag class to hold a collection of attributes, just as an actual HTML tag does.
Nested Class Summary | |
---|---|
static class |
Tag.Type
Tag types. |
Constructor Summary | |
---|---|
Tag()
|
Method Summary | |
---|---|
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 >. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tag()
Method Detail |
---|
public void clear()
public Tag clone()
clone
in class Object
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.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |