@API(type=EXTENDABLE,
src=PUBLIC)
public class ProfilingConditionalTextProvider
extends java.lang.Object
Constructor and Description |
---|
ProfilingConditionalTextProvider() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getXMLFragmentForContentProfiling(int startOffset,
int endOffset,
AuthorAccess authorAccess)
This method is used when the document content between startOffset and endOffset
must be profiled.
|
boolean |
shouldAddProfilingDirectlyOnElement(AuthorElement element)
This method is used to decide if the profiling attributes will be set directly on the element.
|
public java.lang.String getXMLFragmentForContentProfiling(int startOffset, int endOffset, AuthorAccess authorAccess)
startOffset
- The start offset of the document content that must be profiled.endOffset
- The end offset of the document content that must be profiled.authorAccess
- Access class to the author functions.null
the interval will not be profiled.public boolean shouldAddProfilingDirectlyOnElement(AuthorElement element)
false
, the selected contetn will be wrapped
in an XML fragment given by getXMLFragmentForContentProfiling(int, int, AuthorAccess)
.element
- The element to be analyzed.true
to set the profiling attributes directly on the element,
false
to set the profiling on an XML fragment that will wrap the content of the element.© Copyright Syncro Soft SRL 2002 - 2021. All rights reserved.