|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.japano.metadata.Tag
public class Tag
Base class for japano tags.
Field Summary | |
---|---|
protected java.util.List |
attributes
Contains a list with all attributes for this tag. |
protected BodyContent |
bodyContent
BodyContent |
protected java.lang.String |
description
Description of the tag |
protected java.lang.String |
klass
Class of the tag |
protected java.lang.String |
libraryURI
|
protected java.lang.String |
name
name of the tag |
static char |
SUBTAG_DIVIDER
|
Constructor Summary | |
---|---|
Tag()
Creates a new tag instance |
|
Tag(java.lang.String name,
java.lang.String klass,
BodyContent bodyContent,
java.lang.String description)
Creates a new tag instance with the given data |
Method Summary | |
---|---|
void |
addAttribute(Attribute attr)
|
void |
addAttribute(java.lang.String name,
boolean required,
boolean rtExprValue,
java.lang.String type,
java.lang.String description)
Convenience Method to add a new Attribute constructed from the given parameters. |
void |
addToTagLibrary(XMLElement tagLibElement)
|
java.util.List |
attributes()
|
java.lang.String |
getDescription()
|
java.lang.String |
getName()
|
static void |
removeTagLibChild(XMLElement tagLib,
java.lang.String elementName,
java.lang.String name,
boolean removeSubTags)
Removes a taglib child with the given xml element name and the given content of name sub element. |
void |
setDescription(java.lang.String description)
|
void |
setLibraryURI(java.lang.String libraryURI)
|
void |
setName(java.lang.String name)
|
java.lang.String |
toString()
|
XMLElement |
toXML()
Creates an XMLElement from this XMLNode and its children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char SUBTAG_DIVIDER
protected java.lang.String libraryURI
protected java.lang.String name
protected java.lang.String klass
protected java.lang.String description
protected BodyContent bodyContent
protected java.util.List attributes
Constructor Detail |
---|
public Tag()
public Tag(java.lang.String name, java.lang.String klass, BodyContent bodyContent, java.lang.String description)
name
- Name of the tagklass
- Class of the tagbodyContent
- BodyContent set for this tagdescription
- description of this tagMethod Detail |
---|
public void addAttribute(Attribute attr)
public void addAttribute(java.lang.String name, boolean required, boolean rtExprValue, java.lang.String type, java.lang.String description)
public java.lang.String toString()
toString
in class java.lang.Object
public void addToTagLibrary(XMLElement tagLibElement)
public static void removeTagLibChild(XMLElement tagLib, java.lang.String elementName, java.lang.String name, boolean removeSubTags)
tagLib
- taglib elementpublic XMLElement toXML()
XMLNode
toXML
in interface XMLNode
public java.lang.String getName()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public void setName(java.lang.String name)
public void setLibraryURI(java.lang.String libraryURI)
public java.util.List attributes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |