@API(type=NOT_EXTENDABLE,
     src=PRIVATE)
public class DITAAccess
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
DITAAccess.PasteInfo
Paste type of clipboard fragments. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static int | 
CONKEYREF_TYPE
Conkeyref 
 | 
static int | 
CONREF_TYPE
Conref 
 | 
static java.lang.String | 
DEFAULT_CONKEYREF_CONREFEND
Value for conrefend attribute value when a conkeyref is used. 
 | 
static java.lang.String | 
ID_ANY
Identifier used in references path, representing that the topic id can be 
 excluded from the reference. 
 | 
static int | 
INHERITANCE_GENERALIZATION
If the source is a generalization of the target 
 | 
static int | 
INHERITANCE_NONE
No match between the two classes.. 
 | 
static int | 
INHERITANCE_SAME
If the source class is the same as the target class. 
 | 
static int | 
INHERITANCE_SPECIALIZATION
If the source is a specialization of the target 
 | 
static java.lang.String | 
INVALID_PASTE_RESULT_MESSAGE
Invalid paste message 
 | 
static int | 
KEYREF_TYPE
Keyref 
 | 
protected static ro.sync.exml.MessageBundle | 
messages
The messages resource bundle. 
 | 
static java.lang.String[] | 
REF_ATTRIBUTES
DITA reference attributes. 
 | 
| Constructor and Description | 
|---|
DITAAccess()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
addEditReference(AuthorAccess authorAccess)
Add a new conref to the current element or edit the existing one. 
 | 
static java.util.List<CIAttribute> | 
annotateAttributes(java.util.List<CIAttribute> attributes)
Annotate a list of attributes. 
 | 
protected static int | 
checkConsecutiveInsertionWarning(int previousOperationOffset,
                                int selectionStart,
                                int selectionEnd,
                                ro.sync.ecss.dita.reference.ReferenceInfo previousReferenceInfo,
                                ro.sync.ecss.dita.reference.ReferenceInfo currentReferenceInfo)
Show a warning message when consecutive insertion of the same references are performed. 
 | 
static java.lang.String | 
checkValidKeyRef(java.lang.String keyref)
Check if a keyref has a valid key name. 
 | 
static java.lang.String | 
computeElementClazz(WhatPossibleValuesHasAttributeContext context)
Compute the element's clazz 
 | 
static java.lang.String | 
computeLinkText(java.lang.String hrefValue,
               java.lang.String baseSystemID)
Obtains the title of the referred topic (a specialization of topic). 
 | 
static void | 
createReusableComponent(AuthorAccess authorAccess,
                       ro.sync.ecss.extensions.api.DITAUniqueIDAssigner idsAssigner)
Reuse the selected content. 
 | 
static java.util.List<CIValue> | 
filterAttributeValues(java.util.List<CIValue> attributeValues,
                     WhatPossibleValuesHasAttributeContext context,
                     java.lang.String documentTypeName)
Deprecated. 
 
Please use the equivalent method which also receives the URL of the requestor. 
 | 
static java.util.List<CIValue> | 
filterAttributeValues(java.util.List<CIValue> attributeValues,
                     WhatPossibleValuesHasAttributeContext context,
                     java.lang.String documentTypeName,
                     AuthorAccess authorAccess)
Propose additional attribute values. 
 | 
static java.util.List<CIElement> | 
filterElements(java.util.List<CIElement> elements,
              WhatElementsCanGoHereContext context)
Filter the given elements according to the given context. 
 | 
static java.lang.String | 
getAPIKeysManagerDescription()  | 
static java.lang.String | 
getAutoInsertImageRefElementName(AuthorAccess authorAccess,
                                int caretPosition)
Get the name of the topic ref element to insert 
 | 
static java.lang.String | 
getAutoInsertRefElementName(AuthorAccess authorAccess,
                           int caretPosition)
Get the name of the topic ref element to insert 
 | 
static java.lang.String | 
getAutoInsertTopicRefElementName(AuthorAccess authorAccess,
                                int caretPosition)
Get the name of the topic ref element to insert 
 | 
static CIElement | 
getEquivalentChildCIElement(AuthorAccess authorAccess,
                           int caretOffset,
                           java.lang.String tagName)
Get the equivalent child CIElement 
 | 
static int | 
getInheritanceType(java.lang.String sourceClass,
                  java.lang.String targetClass)
Check what inheritance is between the two classes. 
 | 
static ro.sync.ecss.dita.topic.group.TopicgroupInfo | 
getInsertTopicgroup(java.lang.Object parentFrame,
                   ro.sync.ecss.contentcompletion.AuthorCCManager ccM,
                   ro.sync.ecss.ue.AuthorDocumentControllerImpl ctrl,
                   int caretOffset)
Insert a topic group. 
 | 
static ro.sync.ecss.dita.topic.TopicInfo | 
getInsertTopichead(java.lang.Object parentFrame,
                  ro.sync.ecss.contentcompletion.AuthorCCManager ccM,
                  ro.sync.ecss.ue.AuthorDocumentControllerImpl ctrl,
                  int caretOffset)
Insert a topic head. 
 | 
static void | 
getInsertTopicref(java.net.URL editorLocation,
                 java.lang.Object parentFrame,
                 ro.sync.ecss.contentcompletion.AuthorCCManager ccM,
                 AuthorDocumentController ctrl,
                 int caretOffset,
                 java.lang.String initialTopicRefLocation,
                 ro.sync.ecss.dita.topic.ref.TopicRefInserter inserter,
                 java.lang.String preferredElementName,
                 boolean displayReferenceUrl)
Insert a topic ref. 
 | 
static java.util.LinkedHashMap<java.lang.String,ro.sync.ecss.dita.reference.keyref.KeyInfo> | 
getKeys()
Deprecated. 
 
Please use the equivalent method which also receives the URL of the requestor. 
 | 
static java.util.LinkedHashMap<java.lang.String,ro.sync.ecss.dita.reference.keyref.KeyInfo> | 
getKeys(java.net.URL originatorURL)  | 
static java.util.LinkedHashMap<java.lang.String,ro.sync.ecss.dita.reference.keyref.KeyInfo> | 
getKeys(java.net.URL originatorURL,
       ContextKeyManager keysManager)
Returns the mapped DITA 1.2 keys 
 | 
static ro.sync.ecss.dita.reference.keyref.KeysManager | 
getKeysManager()
Get the keys manager, 
 | 
static ro.sync.ecss.dita.map.TitleInfo | 
getNewMapTitle(java.lang.Object parentFrame,
              java.lang.String oldTitle,
              boolean preferTitleAttribute)
Edit the map title 
 | 
static ro.sync.ecss.dita.topic.group.TopicgroupInfo | 
getTopicGroupInfo(java.lang.Object parentFrame,
                 ro.sync.ecss.contentcompletion.AuthorCCManager ccM,
                 ro.sync.ecss.ue.AuthorDocumentControllerImpl ctrl,
                 int caretOffset,
                 ro.sync.ecss.dita.topic.group.TopicgroupInfo initialTopicrefInfo)
Show the topic group info dialog with some initial content 
 | 
static ro.sync.ecss.dita.topic.head.TopicheadInfo | 
getTopicHeadInfo(java.lang.Object parentFrame,
                ro.sync.ecss.contentcompletion.AuthorCCManager ccM,
                ro.sync.ecss.ue.AuthorDocumentControllerImpl ctrl,
                int caretOffset,
                ro.sync.ecss.dita.topic.head.TopicheadInfo initialHeadInfo)
Show the topic head info dialog with some initial content 
 | 
static void | 
getTopicRefInfo(java.net.URL location,
               java.lang.Object parentFrame,
               ro.sync.ecss.contentcompletion.AuthorCCManager ccM,
               ro.sync.ecss.ue.AuthorDocumentControllerImpl ctrl,
               int caretOffset,
               ro.sync.ecss.dita.topic.ref.TopicrefInfo initialTopicrefInfo,
               ro.sync.ecss.dita.topic.ref.TopicRefInserter inserter)
Show the topic head info dialog with some initial content 
 | 
static boolean | 
hasAPIKeysManager()  | 
static void | 
insertContentReference(AuthorAccess authorAccess,
                      java.net.URL initialReferenceURL,
                      boolean displayReferenceUrl)
Shows a dialog that allows inserting a content reference (conref). 
 | 
static void | 
insertHref(AuthorAccess authorAccess,
          java.lang.String typeValue,
          java.lang.String formatValue,
          java.lang.String scopeValue,
          boolean isXref,
          boolean isHrefTypeDitaTopic)
Insert a Xref. 
 | 
static void | 
insertHref(AuthorAccess authorAccess,
          java.lang.String typeValue,
          java.lang.String formatValue,
          java.lang.String scopeValue,
          boolean isXref,
          boolean isHrefTypeDitaTopic,
          java.net.URL initialReferenceURL,
          boolean displayReferenceUrl)
Insert a Xref or link element. 
 | 
static void | 
insertImage(AuthorAccess authorAccess,
           java.lang.String ref)
Insert a DITA Image 
 | 
static SchemaAwareHandlerResult | 
insertImageSchemaAware(AuthorAccess authorAccess,
                      java.lang.String ref)
Insert a DITA Image 
 | 
static SchemaAwareHandlerResult | 
insertImageSchemaAware(AuthorAccess authorAccess,
                      java.lang.String refAttrName,
                      java.lang.String refValue)
Insert a DITA Image 
 | 
static void | 
insertReference(AuthorAccess authorAccess,
               int refType)
Insert a keyref or a conkeyref. 
 | 
static void | 
insertReusableComponent(AuthorAccess authorAccess)
Insert a reusable component 
 | 
static void | 
insertTopicgroup(AuthorAccess authorAccess)
Insert a topic group. 
 | 
static void | 
insertTopichead(AuthorAccess authorAccess)
Insert a topic head. 
 | 
static void | 
insertTopicref(AuthorAccess authorAccess)
Insert a topic ref. 
 | 
static void | 
insertTopicref(AuthorAccess authorAccess,
              java.net.URL initialReferenceURL,
              boolean displayReferenceUrl)
Insert a topic reference. 
 | 
static void | 
insertTopicref(WSDITAMapEditorPage ditaPageAccess,
              java.net.URL initialReferenceURL,
              java.lang.String preferredElementName,
              boolean asChild,
              boolean displayReferenceUrl)
Insert a topic reference in the DITA Map tree. 
 | 
static boolean | 
isGeneralizationOf(java.lang.String sourceClass,
                  java.lang.String targetClass)
True if the first class value is a generalization or the same as the second class value. 
 | 
static Reference | 
parseDITAHref(java.lang.String baseUrl,
             java.lang.String hrefValue)
Parse the  
href attribute and returns the absolute URL and the id. | 
static Reference | 
parseDITAKeyRef(java.lang.String keyref)
Deprecated. 
 
Please use the equivalent method which also receives the URL of the requestor. 
 | 
static Reference | 
parseDITAKeyRef(java.lang.String keyref,
               ro.sync.ecss.dita.reference.keyref.KeyResolver kr)
Parse the DITA conkeyref value 
 | 
static Reference | 
parseDITAKeyRef(java.net.URL originatorURL,
               java.lang.String keyref)
Parse the DITA conkeyref value 
 | 
static java.lang.String | 
pasteAsReference(AuthorAccess authorAccess,
                boolean asConref)
Paste as reference 
 | 
static java.lang.String | 
pasteAsReference(AuthorAccess authorAccess,
                DITAAccess.PasteInfo pasteInfo)
Paste as reference 
 | 
static boolean | 
pasteClipboardFragmentsAsReference(AuthorAccess authorAccess,
                                  DITAAccess.PasteInfo pasteInfo,
                                  ro.sync.ecss.component.AuthorDocumentFragmentClipboardObject[] fragments)
Paste the fragments from clipboard as reference. 
 | 
static void | 
removeReference(AuthorAccess authorAccess)
Remove a content reference from a DITA document. 
 | 
static void | 
replaceConref(AuthorAccess authorAccess)
Replace the conref at caret position 
 | 
static void | 
resolveKeyNotFoundError(AuthorAccess authorAccess,
                       java.lang.String keyref)
The give key was not found. 
 | 
static java.net.URL | 
resolveKeyRef(java.lang.String keyRef,
             boolean addANYIdentifierForKeys)
Deprecated. 
 
Please use the equivalent method which also receives the URL of the requestor. 
 | 
static java.net.URL | 
resolveKeyRef(java.lang.String keyRef,
             ro.sync.ecss.dita.reference.keyref.KeyResolver kr)
Resolve a keyref. 
 | 
static java.net.URL | 
resolveKeyRef(java.net.URL originatorURL,
             java.lang.String keyRef,
             boolean addANYIdentifierForKeys)
Resolve a keyref. 
 | 
static java.net.URL | 
resolveKeyRef(java.net.URL originatorURL,
             java.lang.String keyRef,
             ContextKeyManager keysManager,
             boolean addANYIdentifierForKeys)
Resolve a keyref. 
 | 
static void | 
searchReferences(AuthorAccess authorAccess)
Search references to a certain element at the caret position. 
 | 
static void | 
setDitaAccessCustomizer(ro.sync.ecss.dita.DITAAccessCustomizer ditaAccessCustomizer)
Set the DITA access customizer from SA or EC. 
 | 
static void | 
showInsertReferenceDialog(ro.sync.ecss.contentcompletion.AuthorCCManager ccManager,
                         ro.sync.ecss.ue.AuthorDocumentControllerImpl controller,
                         int caretOffset,
                         java.lang.Object parentFrame,
                         int refType,
                         boolean showOnlyKeysList,
                         ro.sync.ecss.dita.topic.ref.ReferenceInserter referenceInserter)
Shows the keyref/conkeyref insert dialog and returns the choosen refrence 
 information. 
 | 
protected static final ro.sync.exml.MessageBundle messages
public static final java.lang.String[] REF_ATTRIBUTES
public static final java.lang.String DEFAULT_CONKEYREF_CONREFEND
public static final int KEYREF_TYPE
public static final int CONREF_TYPE
public static final int CONKEYREF_TYPE
public static final java.lang.String INVALID_PASTE_RESULT_MESSAGE
public static final java.lang.String ID_ANY
public static final int INHERITANCE_GENERALIZATION
public static final int INHERITANCE_SPECIALIZATION
public static final int INHERITANCE_SAME
public static final int INHERITANCE_NONE
public static void getInsertTopicref(java.net.URL editorLocation,
                     java.lang.Object parentFrame,
                     ro.sync.ecss.contentcompletion.AuthorCCManager ccM,
                     AuthorDocumentController ctrl,
                     int caretOffset,
                     java.lang.String initialTopicRefLocation,
                     ro.sync.ecss.dita.topic.ref.TopicRefInserter inserter,
                     java.lang.String preferredElementName,
                     boolean displayReferenceUrl)
editorLocation - The editor location.parentFrame - The parent frame.ccM - The CC Manager.ctrl - The document controller.caretOffset - The caret offset.initialTopicRefLocation - The initial location (relative or absolute) to set to the topic ref insert dialog.inserter - Topic ref inserterpreferredElementName - Preferred name of the element to insertdisplayReferenceUrl - If true the URL input will be 
 displayed in the insert topic reference dialog (the user will have the possibility 
 to change the reference URL).
 This parameter can be set to false when an initialReferenceURL
 is provided, and the user must not have the possibility to change it 
 (the reference URL must be fixed). 
 public static void insertTopicref(AuthorAccess authorAccess) throws AuthorOperationException
authorAccess - The author access.AuthorOperationExceptionpublic static void insertTopicgroup(AuthorAccess authorAccess) throws AuthorOperationException
authorAccess - The author access.AuthorOperationExceptionpublic static ro.sync.ecss.dita.topic.TopicInfo getInsertTopichead(java.lang.Object parentFrame,
                                                   ro.sync.ecss.contentcompletion.AuthorCCManager ccM,
                                                   ro.sync.ecss.ue.AuthorDocumentControllerImpl ctrl,
                                                   int caretOffset)
parentFrame - The parent frame.ccM - The CC Manager.ctrl - The document controller.caretOffset - The caret offset.public static void insertTopichead(AuthorAccess authorAccess) throws AuthorOperationException
authorAccess - The author access.AuthorOperationExceptionpublic static void setDitaAccessCustomizer(ro.sync.ecss.dita.DITAAccessCustomizer ditaAccessCustomizer)
ditaAccessCustomizer - The DITA access customizer.public static boolean hasAPIKeysManager()
true if we have a keys manager provided through the API.public static java.lang.String getAPIKeysManagerDescription()
public static ro.sync.ecss.dita.map.TitleInfo getNewMapTitle(java.lang.Object parentFrame,
                                             java.lang.String oldTitle,
                                             boolean preferTitleAttribute)
parentFrame - The parent frameoldTitle - The old titlepreferTitleAttribute - public static ro.sync.ecss.dita.topic.head.TopicheadInfo getTopicHeadInfo(java.lang.Object parentFrame,
                                                          ro.sync.ecss.contentcompletion.AuthorCCManager ccM,
                                                          ro.sync.ecss.ue.AuthorDocumentControllerImpl ctrl,
                                                          int caretOffset,
                                                          ro.sync.ecss.dita.topic.head.TopicheadInfo initialHeadInfo)
parentFrame - The parent frame.ccM - The CC Manager.ctrl - The document controller.caretOffset - The caret offset.initialHeadInfo - Initial topic head info.public static void getTopicRefInfo(java.net.URL location,
                   java.lang.Object parentFrame,
                   ro.sync.ecss.contentcompletion.AuthorCCManager ccM,
                   ro.sync.ecss.ue.AuthorDocumentControllerImpl ctrl,
                   int caretOffset,
                   ro.sync.ecss.dita.topic.ref.TopicrefInfo initialTopicrefInfo,
                   ro.sync.ecss.dita.topic.ref.TopicRefInserter inserter)
location - The dita map locationparentFrame - The parent frame.ccM - The CC Manager.ctrl - The document controller.caretOffset - The caret offset.initialTopicrefInfo - Initial topic ref info.inserter - Callback when the dialog is used.public static ro.sync.ecss.dita.topic.group.TopicgroupInfo getTopicGroupInfo(java.lang.Object parentFrame,
                                                             ro.sync.ecss.contentcompletion.AuthorCCManager ccM,
                                                             ro.sync.ecss.ue.AuthorDocumentControllerImpl ctrl,
                                                             int caretOffset,
                                                             ro.sync.ecss.dita.topic.group.TopicgroupInfo initialTopicrefInfo)
parentFrame - The parent frame.ccM - The CC Manager.ctrl - The document controller.caretOffset - The caret offset.initialTopicrefInfo - Initial topic group info.public static ro.sync.ecss.dita.topic.group.TopicgroupInfo getInsertTopicgroup(java.lang.Object parentFrame,
                                                               ro.sync.ecss.contentcompletion.AuthorCCManager ccM,
                                                               ro.sync.ecss.ue.AuthorDocumentControllerImpl ctrl,
                                                               int caretOffset)
parentFrame - The parent frame.ccM - The CC Manager.ctrl - The document controller.caretOffset - The caret offset.public static void insertHref(AuthorAccess authorAccess, java.lang.String typeValue, java.lang.String formatValue, java.lang.String scopeValue, boolean isXref, boolean isHrefTypeDitaTopic, java.net.URL initialReferenceURL, boolean displayReferenceUrl) throws AuthorOperationException
authorAccess - The author access.typeValue - The type attribute value. If not null, the generated reference will have the 'type="typeValue"' attribute set to it.formatValue - The format attribute value.  If not null and the reference points to a non-DITA resource, the generated reference will have the 'format="formatValue"' attribute set to it.scopeValue - The scope attribute value.   If not null, the generated reference will have the 'scope="scopeValue"' attribute set to it.isXref - true if we need to insert an <xref> element, false for the <link> element.isHrefTypeDitaTopic - If true the user wants to insert a reference to a DITA resource (Insert Cross Reference action)
  If false the user wants to a reference to an external non-dita resource (Web Link action or File Reference action).initialReferenceURL - The default URL that will be displayed in the URL
 field of the insert reference dialog. 
 displayReferenceUrl - If true the URL input will be 
 displayed in the insert reference dialog (the user will have the possibility 
 to change the reference URL).
 This parameter can be set to false when an initialReferenceURL
 is provided, and the user must not have the possibility to change it 
 (the reference URL must be fixed). 
 AuthorOperationExceptionpublic static void insertHref(AuthorAccess authorAccess, java.lang.String typeValue, java.lang.String formatValue, java.lang.String scopeValue, boolean isXref, boolean isHrefTypeDitaTopic) throws AuthorOperationException
authorAccess - The author access.typeValue - The the attribute value.formatValue - The format attribute value.scopeValue - The scope attribute value.isXref - true if we need to insert a xref element, false 
 for link element.isHrefTypeDitaTopic - if true a dita topic chooser will be shown 
 otherwise a input url dialog will be show for the href attribute value.AuthorOperationExceptionpublic static void insertContentReference(AuthorAccess authorAccess, java.net.URL initialReferenceURL, boolean displayReferenceUrl) throws AuthorOperationException
authorAccess - The Author access.initialReferenceURL - The default URL that will be displayed in the URL
 field of the insert reference dialog. 
 displayReferenceUrl - If true the URL input will be 
 displayed in the insert reference dialog (the user will have the possibility 
 to change the reference URL).
 This parameter can be set to false when an initialReferenceURL
 is provided, and the user must not have the possibility to change it 
 (the reference URL must be fixed). 
 AuthorOperationExceptionpublic static void insertTopicref(AuthorAccess authorAccess, java.net.URL initialReferenceURL, boolean displayReferenceUrl) throws AuthorOperationException
authorAccess - The Author access.initialReferenceURL - The default URL that will be displayed in the URL
 field of the insert reference dialog. 
 displayReferenceUrl - If true the URL input will be 
 displayed in the insert reference dialog (the user will have the possibility 
 to change the reference URL).
 This parameter can be set to false when an initialReferenceURL
 is provided, and the user must not have the possibility to change it 
 (the reference URL must be fixed). 
 AuthorOperationExceptionpublic static void insertTopicref(WSDITAMapEditorPage ditaPageAccess, java.net.URL initialReferenceURL, java.lang.String preferredElementName, boolean asChild, boolean displayReferenceUrl) throws AuthorOperationException
ditaPageAccess - The DITA Page access.initialReferenceURL - The default URL that will be displayed in the URL
 field of the insert reference dialog. 
 preferredElementName - The preferred name of the element to insert.asChild - true to insert as a child of the selected item, false to insert as a next sibling.displayReferenceUrl - If true the URL input will be 
 displayed in the insert reference dialog (the user will have the possibility 
 to change the reference URL).
 This parameter can be set to false when an initialReferenceURL
 is provided, and the user must not have the possibility to change it 
 (the reference URL must be fixed). 
 AuthorOperationExceptionpublic static void insertReference(AuthorAccess authorAccess, int refType) throws AuthorOperationException
authorAccess - The author access.refType - Reference type. Can be one of the following constants:
 AuthorOperationExceptionpublic static void showInsertReferenceDialog(ro.sync.ecss.contentcompletion.AuthorCCManager ccManager,
                             ro.sync.ecss.ue.AuthorDocumentControllerImpl controller,
                             int caretOffset,
                             java.lang.Object parentFrame,
                             int refType,
                             boolean showOnlyKeysList,
                             ro.sync.ecss.dita.topic.ref.ReferenceInserter referenceInserter)
                                      throws AuthorOperationException
ccManager - CC manager.controller - Author document controller.caretOffset - Caret offset.parentFrame - Parent frame.refType - One of:
 KEYREF_TYPE, 
 CONREF_TYPE, 
 CONKEYREF_TYPEshowOnlyKeysList - true to show only keys list 
 in the insert reference dialog.referenceInserter - The reference inserter.AuthorOperationException - When the insertion fails.public static ro.sync.ecss.dita.reference.keyref.KeysManager getKeysManager()
@Deprecated
public static java.net.URL resolveKeyRef(java.lang.String keyRef,
                                    boolean addANYIdentifierForKeys)
keyRef - The keyref valueaddANYIdentifierForKeys - If true then reference keys will be prefixed by 'ANY/'. 
 in a element_keyref function.public static java.net.URL resolveKeyRef(java.net.URL originatorURL,
                         java.lang.String keyRef,
                         boolean addANYIdentifierForKeys)
originatorURL - The originator URL.keyRef - The keyref valueaddANYIdentifierForKeys - If true then reference keys will be prefixed by 'ANY/'. 
 in a element_keyref function.public static java.lang.String checkValidKeyRef(java.lang.String keyref)
keyref - The keyref (may also contain the "/").null if the key name is valid.public static java.net.URL resolveKeyRef(java.net.URL originatorURL,
                         java.lang.String keyRef,
                         ContextKeyManager keysManager,
                         boolean addANYIdentifierForKeys)
originatorURL - The url that contains the key.keyRef - The keyref valuekeysManager - The key manager.addANYIdentifierForKeys - If true then reference keys will be prefixed by 'ANY/'. 
 in a element_keyref function.public static java.net.URL resolveKeyRef(java.lang.String keyRef,
                         ro.sync.ecss.dita.reference.keyref.KeyResolver kr)
keyRef - The keyref valuekr - The key resolver.public static void createReusableComponent(AuthorAccess authorAccess, ro.sync.ecss.extensions.api.DITAUniqueIDAssigner idsAssigner) throws AuthorOperationException
authorAccess - The author accessidsAssigner - The IDs assignerAuthorOperationException - If failspublic static void insertReusableComponent(AuthorAccess authorAccess) throws AuthorOperationException
authorAccess - The author accessAuthorOperationExceptionpublic static void replaceConref(AuthorAccess authorAccess) throws AuthorOperationException
authorAccess - AuthorOperationExceptionpublic static void removeReference(AuthorAccess authorAccess) throws AuthorOperationException
authorAccess - The author access.AuthorOperationExceptionpublic static void addEditReference(AuthorAccess authorAccess) throws AuthorOperationException
authorAccess - The author accessAuthorOperationExceptionpublic static boolean isGeneralizationOf(java.lang.String sourceClass,
                         java.lang.String targetClass)
sourceClass - The source class valuetargetClass - The target class valuepublic static int getInheritanceType(java.lang.String sourceClass,
                     java.lang.String targetClass)
sourceClass - The source class valuetargetClass - The target class valuepublic static final Reference parseDITAHref(java.lang.String baseUrl, java.lang.String hrefValue) throws java.net.MalformedURLException
href attribute and returns the absolute URL and the id.baseUrl - The base document URL.hrefValue - The href attribute value.
 Provides access to specific informations and actions for 
 editor, document, workspace, tables, change tracking, utilitynull.java.net.MalformedURLException - Can't create the URL.@Deprecated public static Reference parseDITAKeyRef(java.lang.String keyref) throws java.net.MalformedURLException
keyref - The attribute 'conkeyref' valuejava.net.MalformedURLExceptionpublic static Reference parseDITAKeyRef(java.net.URL originatorURL, java.lang.String keyref) throws java.net.MalformedURLException
originatorURL - The originator URL.keyref - The attribute 'conkeyref' valuejava.net.MalformedURLExceptionpublic static Reference parseDITAKeyRef(java.lang.String keyref, ro.sync.ecss.dita.reference.keyref.KeyResolver kr) throws java.net.MalformedURLException
keyref - The attribute 'conkeyref' valuekr - The keys resolverjava.net.MalformedURLExceptionpublic static java.lang.String getAutoInsertTopicRefElementName(AuthorAccess authorAccess, int caretPosition)
authorAccess - The author accesscaretPosition - Caret positionpublic static java.lang.String getAutoInsertRefElementName(AuthorAccess authorAccess, int caretPosition)
authorAccess - The author accesscaretPosition - Caret positionpublic static java.lang.String getAutoInsertImageRefElementName(AuthorAccess authorAccess, int caretPosition)
authorAccess - The author accesscaretPosition - Caret positionpublic static CIElement getEquivalentChildCIElement(AuthorAccess authorAccess, int caretOffset, java.lang.String tagName)
authorAccess - Author accesscaretOffset - The caret offsettagName - The tag name@Deprecated public static java.util.LinkedHashMap<java.lang.String,ro.sync.ecss.dita.reference.keyref.KeyInfo> getKeys()
public static java.util.LinkedHashMap<java.lang.String,ro.sync.ecss.dita.reference.keyref.KeyInfo> getKeys(java.net.URL originatorURL)
originatorURL - The URL for which the keys are requestedpublic static java.util.LinkedHashMap<java.lang.String,ro.sync.ecss.dita.reference.keyref.KeyInfo> getKeys(java.net.URL originatorURL,
                                                                                           ContextKeyManager keysManager)
originatorURL - The URL of the document which contains the keys.keysManager - The key manager that is aware of the context of the document.public static java.lang.String pasteAsReference(AuthorAccess authorAccess, boolean asConref) throws AuthorOperationException
authorAccess - The author access.asConref - True if paste as conref, false as linkAuthorOperationExceptionpublic static java.lang.String pasteAsReference(AuthorAccess authorAccess, DITAAccess.PasteInfo pasteInfo) throws AuthorOperationException
authorAccess - The author access.pasteInfo - Paste type of clipboard fragments.AuthorOperationExceptionpublic static boolean pasteClipboardFragmentsAsReference(AuthorAccess authorAccess, DITAAccess.PasteInfo pasteInfo, ro.sync.ecss.component.AuthorDocumentFragmentClipboardObject[] fragments) throws AuthorOperationException
authorAccess - The author access.pasteInfo - Paste type of clipboard fragments.fragments - The fragments to paste with.true if the paste was valid.AuthorOperationException@Deprecated public static java.util.List<CIValue> filterAttributeValues(java.util.List<CIValue> attributeValues, WhatPossibleValuesHasAttributeContext context, java.lang.String documentTypeName)
attributeValues - The attribute values.context - The context.documentTypeName - The document type name.public static java.util.List<CIValue> filterAttributeValues(java.util.List<CIValue> attributeValues, WhatPossibleValuesHasAttributeContext context, java.lang.String documentTypeName, AuthorAccess authorAccess)
attributeValues - The attribute values.context - The context.documentTypeName - The document type name.authorAccess - The Author Access.public static java.lang.String computeElementClazz(WhatPossibleValuesHasAttributeContext context)
context - The attributes editing context.public static java.util.List<CIAttribute> annotateAttributes(java.util.List<CIAttribute> attributes)
attributes - The attributes list.public static void insertImage(AuthorAccess authorAccess, java.lang.String ref) throws AuthorOperationException
authorAccess - The author accessref - The reference.AuthorOperationExceptionpublic static SchemaAwareHandlerResult insertImageSchemaAware(AuthorAccess authorAccess, java.lang.String ref) throws AuthorOperationException
authorAccess - The author accessref - The reference.AuthorOperationExceptionpublic static SchemaAwareHandlerResult insertImageSchemaAware(AuthorAccess authorAccess, java.lang.String refAttrName, java.lang.String refValue) throws AuthorOperationException
authorAccess - The author accessrefAttrName - The reference attribute name.refValue - The reference value.AuthorOperationExceptionpublic static void searchReferences(AuthorAccess authorAccess)
authorAccess - The author access.public static java.lang.String computeLinkText(java.lang.String hrefValue,
                               java.lang.String baseSystemID)
                                        throws java.net.MalformedURLException,
                                               java.io.IOException,
                                               javax.xml.parsers.ParserConfigurationException,
                                               org.xml.sax.SAXException,
                                               java.lang.Exception
hrefValue - The relative location of the topic.baseSystemID - base system ID.java.net.MalformedURLExceptionjava.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.lang.Exceptionpublic static java.util.List<CIElement> filterElements(java.util.List<CIElement> elements, WhatElementsCanGoHereContext context)
elements - The list of CIElement elements.context - The context.public static void resolveKeyNotFoundError(AuthorAccess authorAccess, java.lang.String keyref)
authorAccess - Interface to the author context.keyref - The key that wasn't found in the current root map context.protected static int checkConsecutiveInsertionWarning(int previousOperationOffset,
                                   int selectionStart,
                                   int selectionEnd,
                                   ro.sync.ecss.dita.reference.ReferenceInfo previousReferenceInfo,
                                   ro.sync.ecss.dita.reference.ReferenceInfo currentReferenceInfo)
previousOperationOffset - The previous operation offset, usually where the caret is positioned.selectionStart - The current selection start.selectionEnd - The current selection end.previousReferenceInfo - The previous inserted reference.currentReferenceInfo - The current inserted reference.© Copyright SyncRO Soft SRL 2002 - 2014. All rights reserved.