public class TagInstance
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FRAGMENT_WITH_SIMPLE_PARENT |
static java.lang.String |
FRAGMENT_WITH_TAG_PARENT |
static java.lang.String |
TOP_TAG |
Constructor and Description |
---|
TagInstance(ParseTagManager manager) |
TagInstance(ParseTagManager manager,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(QName name,
java.lang.Object value)
Sets the attribute.
|
TagInstance |
addNewTag(JspGenerator gen,
QName tagName,
TagInfo tagInfo,
java.lang.Class cl,
java.util.ArrayList<QName> names,
java.util.ArrayList<java.lang.String> values,
boolean hasBodyContent)
Adds a new tag.
|
TagInstance |
addTag(JspGenerator gen,
QName tagName,
TagInfo tagInfo,
java.lang.Class cl,
java.util.ArrayList<QName> names,
java.util.ArrayList<java.lang.Object> values,
boolean hasBodyContent)
Adds a child tag.
|
TagInstance |
findTag(QName tagName,
java.util.ArrayList<QName> names,
boolean hasBodyContent)
Finds the matching tag.
|
boolean |
generateAdapterDeclaration() |
TagInstance |
get(int i)
Iterates through the children.
|
AnalyzedTag |
getAnalyzedTag()
Returns the analyzed tag.
|
boolean |
getAndSetInjectFactory(boolean value) |
java.lang.String |
getAttribute(QName name) |
TagAttributeInfo |
getAttributeInfo(java.lang.String name) |
java.util.ArrayList<QName> |
getAttributeNames()
Returns the tag's attribute names.
|
boolean |
getBodyContent()
Get true if the tag has a body content.
|
java.lang.String |
getId() |
java.lang.String |
getName()
Returns the tag name
|
boolean |
getNeedsAdapter()
Set true if needs an adapter.
|
TagInstance |
getParent() |
QName |
getQName()
Returns the tag name
|
java.lang.Class |
getTagClass()
Returns the tag class.
|
TagInfo |
getTagInfo() |
VariableInfo[] |
getVarInfo() |
boolean |
hasChildren()
Returns true if there are children.
|
boolean |
isSimpleTag()
Returns true if it's a simple tag.
|
boolean |
isTagFileTag()
Returns true if it's a simple tag.
|
boolean |
isTop()
Returns true for a top tag.
|
java.util.Iterator<TagInstance> |
iterator()
Iterates through the children.
|
void |
setBodyContent(boolean hasBodyContent)
Set true if the tag has a body content.
|
void |
setId(java.lang.String id) |
void |
setNeedsAdapter(boolean needsAdapter)
if needs an adapter.
|
int |
size() |
public static final java.lang.String TOP_TAG
public static final java.lang.String FRAGMENT_WITH_TAG_PARENT
public static final java.lang.String FRAGMENT_WITH_SIMPLE_PARENT
public TagInstance(ParseTagManager manager)
public TagInstance(ParseTagManager manager, java.lang.String id)
public QName getQName()
public java.lang.String getName()
public java.lang.String getId()
public void setId(java.lang.String id)
public boolean generateAdapterDeclaration()
public TagInstance getParent()
public boolean isTop()
public java.lang.Class getTagClass()
public boolean isSimpleTag()
public boolean isTagFileTag()
public TagInfo getTagInfo()
public AnalyzedTag getAnalyzedTag()
public VariableInfo[] getVarInfo()
public int size()
public boolean hasChildren()
public boolean getNeedsAdapter()
public void setNeedsAdapter(boolean needsAdapter)
public java.util.Iterator<TagInstance> iterator()
public TagInstance get(int i)
public java.util.ArrayList<QName> getAttributeNames()
public void setBodyContent(boolean hasBodyContent)
public boolean getBodyContent()
public TagInstance addTag(JspGenerator gen, QName tagName, TagInfo tagInfo, java.lang.Class cl, java.util.ArrayList<QName> names, java.util.ArrayList<java.lang.Object> values, boolean hasBodyContent)
tagName
- the JSP name of the tagtagInfo
- the TagInfo structure for the tagcl
- the tag's implementation classnames
- the array of attribute namesvalues
- the array of attribute valuespublic TagInstance addNewTag(JspGenerator gen, QName tagName, TagInfo tagInfo, java.lang.Class cl, java.util.ArrayList<QName> names, java.util.ArrayList<java.lang.String> values, boolean hasBodyContent)
public void addAttribute(QName name, java.lang.Object value)
public java.lang.String getAttribute(QName name)
public TagAttributeInfo getAttributeInfo(java.lang.String name)
public TagInstance findTag(QName tagName, java.util.ArrayList<QName> names, boolean hasBodyContent)
public boolean getAndSetInjectFactory(boolean value)