/** * Returns ture if this buffer represents a forest, which is * are more than one adjacent XML elements. */ public final boolean isForest() { return isCreated() && treeCount>1; }
/** * Is the buffer a representation of a fragment of an XML infoset. * * @return * <code>true</code> if the buffer is a representation of a fragment * of an XML infoset. */ public final boolean isFragment() { return (isCreated() && (_structure.getArray()[_structurePtr] & AbstractCreatorProcessor.TYPE_MASK) != AbstractCreatorProcessor.T_DOCUMENT); }
/** * Is the buffer a representation of a fragment of an XML infoset * that is an element (and its contents). * * @return * <code>true</code> if the buffer a representation * of a fragment of an XML infoset that is an element (and its contents). */ public final boolean isElementFragment() { return (isCreated() && (_structure.getArray()[_structurePtr] & AbstractCreatorProcessor.TYPE_MASK) == AbstractCreatorProcessor.T_ELEMENT); }