Class AuthorDocumentPositionedInfo
java.lang.Object
ro.sync.document.DocumentPositionedInfo
ro.sync.ecss.component.validation.AuthorDocumentPositionedInfo
- All Implemented Interfaces:
IAuthorDocumentPositionedInfo
@API(type=EXTENDABLE,
src=PUBLIC)
public class AuthorDocumentPositionedInfo
extends DocumentPositionedInfo
implements IAuthorDocumentPositionedInfo
A document position info usually needs a line and column for the error.
This extension allows you to specify either the problem AuthorNode or an offset/length interval in the Author content.
-
Field Summary
Fields inherited from class ro.sync.document.DocumentPositionedInfo
NOT_KNOWN, SEVERITY_ERROR, SEVERITY_FATAL, SEVERITY_INFO, SEVERITY_WARN
Fields inherited from interface ro.sync.ecss.component.validation.IAuthorDocumentPositionedInfo
CONTENT_DATA
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorDocumentPositionedInfo
(int severity, String message, String systemID, int startOffset, int length) Constructor.AuthorDocumentPositionedInfo
(int severity, String message, String systemID, AuthorNode node) Constructor.AuthorDocumentPositionedInfo
(int severity, String message, AuthorNode node) Constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetNode()
boolean
Checks if the entire node should be selected.void
setSelectEntireNode
(boolean selectEntireNode) Sets if the entire node should be selected or not.Methods inherited from class ro.sync.document.DocumentPositionedInfo
asHTML, asHTML, asHTML, asHTML, asJSON, asJSON, asJSON, asText, asText, asText, asXML, asXML, asXML, equals, flipSeverity, getAdditionalHtmlContent, getAdditionalInfo, getAnchor, getColumn, getData, getDetailedExceptionInfo, getDITAAdditionalInfo, getECAdditionalInfo, getEndColumn, getEndLine, getEngineName, getErrorKey, getHTMLMessage, getImposedInitialPage, getLength, getLine, getMatchRange, getMessage, getMessageHighlightOffset, getMessageProvider, getMessageWithEngine, getMessageWithEngine, getMessageWithSeverity, getMessageWithSeverity, getMessageWithSeverity, getOffset, getOperationDescription, getPreferredEngineName, getSeverity, getSeverityAsString, getStartEndPositions, getSystemID, hashCode, isElementTarget, isHighlightToColumn, setAdditionalInfo, setAnchor, setColumn, setData, setDetailedExceptionInfo, setDITAAdditionalInfo, setECAdditionalInfo, setElementTarget, setEndColumn, setEndLine, setEngineName, setErrorKey, setHighlightToColumn, setHtmlMessageFragment, setImposedInitialPage, setLength, setLine, setMaskPasswordsInURLs, setMatchRange, setMessage, setMessageHighlightOffset, setOffset, setOperationDescription, setSeverity, setStartEndPositionsMap, setSystemID, setTemporaryPositions, toString
-
Constructor Details
-
AuthorDocumentPositionedInfo
Constructor.- Parameters:
dpi
- The document positioned info to copy.node
- The author node. The node base URL will be used as a system ID location.
-
AuthorDocumentPositionedInfo
Constructor.- Parameters:
severity
- Severity. One of the severity constants from class DocumentPositionedInfo: SEVERITY_ERROR, SEVERITY_FATAL, SEVERITY_INFO , SEVERITY_WARN.message
- Error message.node
- The author node. The node base URL will be used as a system ID location.
-
AuthorDocumentPositionedInfo
Constructor.- Parameters:
severity
- Severity. One of the severity constants from class DocumentPositionedInfo: SEVERITY_ERROR, SEVERITY_FATAL, SEVERITY_INFO , SEVERITY_WARN.message
- Error message.systemID
- System IDnode
- The author node.
-
AuthorDocumentPositionedInfo
public AuthorDocumentPositionedInfo(int severity, String message, String systemID, int startOffset, int length) Constructor.- Parameters:
severity
- Severity. One of the severity constants from class DocumentPositionedInfo: SEVERITY_ERROR, SEVERITY_FATAL, SEVERITY_INFO , SEVERITY_WARN.message
- Error message.systemID
- System IDstartOffset
- The start offset of the problem, mapped in the Author content.length
- The length of the problem, mapped in the Author content.
-
-
Method Details
-
getNode
- Specified by:
getNode
in interfaceIAuthorDocumentPositionedInfo
- Returns:
- The node to locate the message.
-
setSelectEntireNode
public void setSelectEntireNode(boolean selectEntireNode) Sets if the entire node should be selected or not.- Parameters:
selectEntireNode
-true
if the entire node should be selected.
-
isSelectEntireNode
public boolean isSelectEntireNode()Checks if the entire node should be selected.- Specified by:
isSelectEntireNode
in interfaceIAuthorDocumentPositionedInfo
- Returns:
true
if the entire node should be selected.
-