public class DecoraTag
extends java.lang.Object
Constructor and Description |
---|
DecoraTag(java.lang.String name,
java.lang.String id,
int start,
int end) |
DecoraTag(java.lang.String name,
java.lang.String id,
int start,
int end,
int defaultValueStart,
int defaultValueLength) |
Modifier and Type | Method and Description |
---|---|
DecoraTag |
duplicate()
Duplicates static content of the class, for caching purposes.
|
void |
endRegion(int regionEnd,
int tagLen)
Ends region definition by setting the region length.
|
int |
getDeepLevel() |
int |
getDefaultValueLength()
Returns the length of Decora default value if exist.
|
int |
getDefaultValueStart()
Returns start index of Decora default value if exist.
|
int |
getEndIndex()
Returns end index of Decora tag in decorator file.
|
java.lang.String |
getName()
Returns decora tag name.
|
int |
getRegionLength()
Returns region length.
|
int |
getRegionStart()
Returns start index of the region in the page.
|
int |
getRegionTagEnd() |
int |
getRegionTagStart() |
int |
getStartIndex()
Returns start index of Decora tag in decorator file.
|
boolean |
hasDefaultValue()
Returns
true if Decora tag has
default value. |
boolean |
isInsideOtherTagRegion(DecoraTag decoraTag)
Returns
true if region of this Decora tag
is inside of region of provided Decora tag. |
boolean |
isMatchedTag(Tag tag)
Returns
true if provided tag
matches decorator tag. |
boolean |
isRegionDefined()
Returns
true if region is fully defined. |
boolean |
isRegionStarted()
Returns
true if region definition is started. |
boolean |
isRegionUndefined()
Returns
true if region is undefined. |
void |
startRegion(int start,
int tagLen,
int deepLevel)
Starts defining region by setting the start index and reset region length to zero.
|
java.lang.String |
toString() |
public DecoraTag(java.lang.String name, java.lang.String id, int start, int end)
public DecoraTag(java.lang.String name, java.lang.String id, int start, int end, int defaultValueStart, int defaultValueLength)
public DecoraTag duplicate()
DecoraTag
s and duplicate it.public java.lang.String getName()
public int getStartIndex()
public int getEndIndex()
public int getDefaultValueStart()
public int getDefaultValueLength()
public boolean hasDefaultValue()
true
if Decora tag has
default value.public boolean isMatchedTag(Tag tag)
true
if provided tag
matches decorator tag.public boolean isRegionDefined()
true
if region is fully defined.
Returns false
if region is either started or
undefined.public boolean isRegionStarted()
true
if region definition is started.
Region start is known, but not yet the end.public boolean isRegionUndefined()
true
if region is undefined.
Returns false
if region is either started
or defined.public void startRegion(int start, int tagLen, int deepLevel)
public void endRegion(int regionEnd, int tagLen)
public int getRegionStart()
public int getRegionLength()
public boolean isInsideOtherTagRegion(DecoraTag decoraTag)
true
if region of this Decora tag
is inside of region of provided Decora tag.public int getRegionTagStart()
public int getRegionTagEnd()
public int getDeepLevel()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-present Jodd Team