/** */ public boolean isInvalid() { return isInvalid(getStructuredDocumentRegion()); }
/** * getFirstStructuredDocumentRegion method * */ public IStructuredDocumentRegion getFirstStructuredDocumentRegion() { return StructuredDocumentRegionUtil.getFirstStructuredDocumentRegion(getStructuredDocumentRegion()); }
/** * getLastStructuredDocumentRegion method * */ public IStructuredDocumentRegion getLastStructuredDocumentRegion() { return StructuredDocumentRegionUtil.getLastStructuredDocumentRegion(getStructuredDocumentRegion()); }
/** */ Text findNextText() { Node node = this.nextNode; while (node != null) { if (node != this.nextNode && node.getNodeType() == Node.TEXT_NODE) { TextImpl text = (TextImpl) node; // skip empty text if (text.getStructuredDocumentRegion() != null) return text; } Node child = node.getFirstChild(); if (child != null) { node = child; continue; } while (node != null) { Node next = node.getNextSibling(); if (next != null) { node = next; break; } node = node.getParentNode(); } } return null; }
/** * getData method * * @return java.lang.String */ public String getData() throws DOMException { if (this.fSource != null) return getData(this.fSource); String data = super.getData(); if (data != null) return data; return getData(getStructuredDocumentRegion()); }
this.gapStructuredDocumentRegion = impl.getStructuredDocumentRegion(); IStructuredDocumentRegion newStructuredDocumentRegion = null; if (length > 0)
IStructuredDocumentRegion flatNode = nextText.getStructuredDocumentRegion(); if (flatNode != null) prevText.appendStructuredDocumentRegion(flatNode);
return false; IStructuredDocumentRegion flatNode = getStructuredDocumentRegion(); if (flatNode == null) return false;
return false; IStructuredDocumentRegion flatNode = getStructuredDocumentRegion(); if (flatNode == null) return false;
/** */ IStructuredDocumentRegion appendStructuredDocumentRegion(IStructuredDocumentRegion newStructuredDocumentRegion) { if (newStructuredDocumentRegion == null) return null; IStructuredDocumentRegion flatNode = getStructuredDocumentRegion(); if (flatNode == null) { setStructuredDocumentRegion(newStructuredDocumentRegion); return newStructuredDocumentRegion; } if (flatNode instanceof StructuredDocumentRegionContainer) { StructuredDocumentRegionContainer container = (StructuredDocumentRegionContainer) flatNode; container.appendStructuredDocumentRegion(newStructuredDocumentRegion); } else { StructuredDocumentRegionContainer container = new StructuredDocumentRegionContainer(); container.appendStructuredDocumentRegion(flatNode); container.appendStructuredDocumentRegion(newStructuredDocumentRegion); setStructuredDocumentRegion(container); } return newStructuredDocumentRegion; }
return null; IStructuredDocumentRegion flatNode = getStructuredDocumentRegion(); if (flatNode == null || !(flatNode instanceof StructuredDocumentRegionContainer)) return null; // error
return appendStructuredDocumentRegion(newStructuredDocumentRegion); IStructuredDocumentRegion flatNode = getStructuredDocumentRegion(); if (flatNode == null) return null; // error
return removeStructuredDocumentRegion(oldStructuredDocumentRegion); IStructuredDocumentRegion flatNode = getStructuredDocumentRegion(); if (flatNode == null) return null; // error
return null; IStructuredDocumentRegion flatNode = getStructuredDocumentRegion(); if (flatNode == null) return null; // error
throw new StructuredDocumentRegionManagementException(); if (text.getStructuredDocumentRegion() == null) {
IStructuredDocumentRegion flatNode = ownerText.getStructuredDocumentRegion(); if (flatNode == oldStructuredDocumentRegion) { IStructuredDocumentRegion newStructuredDocumentRegion = new StructuredDocumentRegionProxy(oldOffset, oldLength);
IStructuredDocumentRegion oldStructuredDocumentRegion = text.getStructuredDocumentRegion(); if (oldStructuredDocumentRegion == null) { throw new StructuredDocumentRegionManagementException();
TextImpl text = (TextImpl) ownerNode; IStructuredDocumentRegion flatNode = text.getStructuredDocumentRegion(); if (flatNode == oldStructuredDocumentRegion) { int newOffset = oldOffset;