Oxygen XML Editor 11.2 Author API

ro.sync.ecss.extensions.api
Class InvalidEditException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ro.sync.ecss.extensions.api.InvalidEditException
All Implemented Interfaces:
Serializable

public class InvalidEditException
extends Exception

Exception thrown by AuthorSchemaAwareEditingHandler methods when an edit is considered invalid and must be rejected.

See Also:
Serialized Form

Constructor Summary
InvalidEditException(String title, String description, boolean presentToUser)
          Constructor.
InvalidEditException(String title, String description, boolean presentToUser, boolean showLinkToSchemaAwarePreferences)
          Constructor.
InvalidEditException(String title, String description, Throwable cause, boolean presentToUser)
          Constructor.
 
Method Summary
 String getHtmlMessage()
           
 String getTitle()
           
 boolean isPresentToUser()
           
 boolean isShowLinkToSchemaAwarePreferences()
           
 void setHtmlMessage(String htmlMessage)
           
 void setShowLinkToSchemaAwarePreferences(boolean showLinkToSchemaAwarePreferences)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidEditException

public InvalidEditException(String title,
                            String description,
                            boolean presentToUser,
                            boolean showLinkToSchemaAwarePreferences)
Constructor.

Parameters:
title - Title to be presented to the user.
description - Error message.
presentToUser - true if the error message must be presented to the user.
showLinkToSchemaAwarePreferences - If true when the error message is presented to the user a link to the Schema Aware preference page will be added.

InvalidEditException

public InvalidEditException(String title,
                            String description,
                            boolean presentToUser)
Constructor.

Parameters:
title - Title to be presented to the user.
description - Error message.
presentToUser - true if the error message must be presented to the user.

InvalidEditException

public InvalidEditException(String title,
                            String description,
                            Throwable cause,
                            boolean presentToUser)
Constructor.

Parameters:
title - Title to be presented to the user.
description - Error message.
cause - The exception cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.
presentToUser - true if the error message must be presented to the user.
Method Detail

isPresentToUser

public boolean isPresentToUser()
Returns:
true if the error message should be presented to the user.

getTitle

public String getTitle()
Returns:
Returns the title.

setHtmlMessage

public void setHtmlMessage(String htmlMessage)
Parameters:
htmlMessage - An error message that uses HTML elements for styling.

getHtmlMessage

public String getHtmlMessage()
Returns:
Returns the error message using HTML elements to style. null if a styled message is not available.

setShowLinkToSchemaAwarePreferences

public void setShowLinkToSchemaAwarePreferences(boolean showLinkToSchemaAwarePreferences)
Parameters:
showLinkToSchemaAwarePreferences - The showLinkToSchemaAwarePreferences to set.

isShowLinkToSchemaAwarePreferences

public boolean isShowLinkToSchemaAwarePreferences()
Returns:
Returns the showLinkToSchemaAwarePreferences.

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.