|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITextModel
This is a base interface for all model objects that are fragments of text files. It provides functionality for computing localization in file, retrieving subelements with offset
Method Summary | |
---|---|
boolean |
containsOffset(int offset)
Returns true if the object (or one of its children) contains the offset. |
java.lang.String |
getAsText()
Returns the value of the element and all its children as concatenated text (in the form it is represented in file) |
IFileModel |
getCorrespondingFileModel()
Returns the root IFileModel containing this element |
ITextModel |
getModelElementByOffset(int offset)
Returns this element or one of the children depending on the offset. |
ITextModel |
getParent()
Returns direct element containing this element. |
java.util.Collection<ITextModel> |
getTextModelChildren()
Returns children as a list of |
Methods inherited from interface org.ucworkbench.model.IUCElement |
---|
accept, childrenAccept, exists, getAncestor, getChildren, getCorrespondingResource, getElementName, getElementType, getPath, getUCProject, getUnderlyingResource |
Methods inherited from interface org.ucworkbench.model.supporting.IRegion |
---|
getLength, getOffset |
Method Detail |
---|
ITextModel getParent()
this
element.
getParent
in interface IUCElement
null
if this element has no
parentjava.lang.String getAsText()
IFileModel getCorrespondingFileModel()
ITextModel getModelElementByOffset(int offset)
offset
-
null
if the offset is out of range of this objectboolean containsOffset(int offset)
offset
-
java.util.Collection<ITextModel> getTextModelChildren()
IUCElement.getChildren()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |