public class HtmlSpecialTag extends MarkupElement
Modifier and Type | Field and Description |
---|---|
protected XmlTag |
xmlTag
The underlying xml tag
|
Constructor and Description |
---|
HtmlSpecialTag(XmlTag tag,
IXmlPullParser.HttpTagType httpTagType)
Construct.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equalTo(MarkupElement element)
This is not an implementation of equals because we don't care about hashCodes for
MarkupElements yet.
|
boolean |
getFlag(int flag)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
|
IXmlPullParser.HttpTagType |
getHttpTagType()
Gets httpTagType.
|
int |
getLength()
Gets the length of the tag in characters.
|
int |
getPos() |
XmlTag.TagType |
getType() |
XmlTag |
getXmlTag() |
boolean |
isClose() |
boolean |
isOpen() |
boolean |
isOpenClose() |
void |
onBeforeRender(Component component,
MarkupStream markupStream)
For subclasses to override.
|
void |
setFlag(int flag,
boolean set)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
|
CharSequence |
toCharSequence() |
String |
toString()
Converts this object to a string representation.
|
String |
toUserDebugString()
Converts this object to a string representation including useful information for debugging
|
void |
writeOutput(Response response,
boolean stripWicketAttributes,
String namespace)
Write the tag to the response
|
closes
protected final XmlTag xmlTag
public HtmlSpecialTag(XmlTag tag, IXmlPullParser.HttpTagType httpTagType)
tag
- The underlying xml taghttpTagType
- public final void setFlag(int flag, boolean set)
flag
- The flag to setset
- True to turn the flag on, false to turn it offpublic final boolean getFlag(int flag)
flag
- The flag to testpublic final int getLength()
public final int getPos()
XmlTag.getPos()
public final XmlTag.TagType getType()
public final boolean isClose()
XmlTag.isClose()
public final boolean isOpen()
XmlTag.isOpen()
public final boolean isOpenClose()
XmlTag.isOpenClose()
public CharSequence toCharSequence()
toCharSequence
in class MarkupElement
public final String toString()
public final void writeOutput(Response response, boolean stripWicketAttributes, String namespace)
response
- The response to write tostripWicketAttributes
- if true, wicket:id are removed from outputnamespace
- Wicket's namespace to usepublic final String toUserDebugString()
toUserDebugString
in class MarkupElement
public final XmlTag getXmlTag()
public boolean equalTo(MarkupElement element)
MarkupElement
equalTo
in class MarkupElement
element
- The markup element to compare withpublic void onBeforeRender(Component component, MarkupStream markupStream)
component
- The component that is about to be renderedmarkupStream
- The current amrkup streampublic final IXmlPullParser.HttpTagType getHttpTagType()
Copyright © 2006–2016 Apache Software Foundation. All rights reserved.