public interface ICode extends ITag
IMPORTANT: A number of fields are shared by opening and closing tags, implementations must ensure that both objects have the values of these fields always the same. That is, the following code is true:
ICode sc = content.appendOpeningCode("1", "<b>"); sc.setType("fmt"); ICode ec = content.closeCode("1", "<b>"); assertEquals("fmt", ec.getType());
Modifier and Type | Method and Description |
---|---|
boolean |
getCanCopy()
Indicates if this code can be copied.
|
boolean |
getCanDelete() |
boolean |
getCanOverlap()
Indicates if this code can overlap another.
|
CanReorder |
getCanReorder() |
String |
getCopyOf() |
String |
getData()
Gets the original data for this code.
|
Direction |
getDataDir()
Gets the directionality for the original data.
|
Direction |
getDir()
Gets the directionality of the content of this code.
|
String |
getDisp() |
String |
getEquiv()
Gets the text equivalent string for this code.
|
String |
getSubFlows() |
String |
getSubType()
Gets the sub-type for this code.
|
void |
setCanCopy(boolean canCopy)
Sets the flag indicating if this code can be copied.
|
void |
setCanDelete(boolean canDelete) |
void |
setCanOverlap(boolean canOverlap)
Sets the flag indicating if this code can overlap another.
|
void |
setCanReorder(CanReorder canReorder) |
void |
setCopyOf(String id) |
void |
setData(String data)
Sets the original data for this code.
|
void |
setDataDir(Direction dir)
Sets the directionality for the original data.
|
void |
setDir(Direction dir)
Sets the directionality of the content of this code.
|
void |
setDisp(String disp) |
void |
setEquiv(String equiv)
Sets the text equivalent string for this code.
|
void |
setSubFlows(String subFlows) |
void |
setSubType(String subType)
Sets the sub-type for this code.
|
String getSubType()
void setSubType(String subType)
subType
- the new sub-type.boolean getCanCopy()
void setCanCopy(boolean canCopy)
canCopy
- true to allow this code to be copied, false otherwise.boolean getCanOverlap()
void setCanOverlap(boolean canOverlap)
canOverlap
- true to allow this code to overlap another, false otherwise.boolean getCanDelete()
void setCanDelete(boolean canDelete)
CanReorder getCanReorder()
void setCanReorder(CanReorder canReorder)
String getCopyOf()
void setCopyOf(String id)
Direction getDir()
void setDir(Direction dir)
dir
- the new directionality.String getData()
void setData(String data)
data
- the new data to set (can be null).Direction getDataDir()
void setDataDir(Direction dir)
dir
- the new directionality.String getDisp()
void setDisp(String disp)
String getEquiv()
void setEquiv(String equiv)
equiv
- the new text equivalent string. If the parameter is null
the new text equivalent must be set to its default value which is
an empty string.String getSubFlows()
void setSubFlows(String subFlows)