Lines Matching refs:region
47 The document contains a list of region collections, each one being
48 a list of regions. Each region has a type, as well as text.
137 ITextRegion region = regions.getRegions().get(i);
138 String type = region.getType();
139 String text = regions.getText(region);
143 Each "region collection" basically matches one XML tag, with sub-regions for all the tokens
146 Note that an XML_CONTENT region is actually the whitespace, was is known as a TEXT in the w3c DOM.
148 Also note that each outer region has a type, but the inner regions also reuse a similar type.
149 So for example an outer XML_TAG_NAME region collection is a proper XML tag, and it will contain
159 XML_TAG_NAME region, getLength is 7 (string + space) and getTextLength is 6 (string, no space).
160 Spacing between XML element is its own collapsed region.
162 If you want the text of the inner region, you actually need to query it from the outer region.
163 The outer IStructuredDocumentRegion (the region collection) contains lots more useful access
176 Given a region collection, you can also browse regions either using a getRegions() list, or
177 using getFirst/getLastRegion, or using getRegionAtCharacterOffset(). Iterating the region