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.
  • Constructor Details

    • AuthorDocumentPositionedInfo

      public AuthorDocumentPositionedInfo(DocumentPositionedInfo dpi, AuthorNode node)
      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

      public AuthorDocumentPositionedInfo(int severity, String message, AuthorNode node)
      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

      public AuthorDocumentPositionedInfo(int severity, String message, String systemID, AuthorNode node)
      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 ID
      node - 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 ID
      startOffset - 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

      public AuthorNode getNode()
      Specified by:
      getNode in interface IAuthorDocumentPositionedInfo
      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 interface IAuthorDocumentPositionedInfo
      Returns:
      true if the entire node should be selected.