Oxygen XML Editor 14.2 Author API

ro.sync.ecss.extensions.commons.operations
Class CommonsOperationsUtil

java.lang.Object
  extended by ro.sync.ecss.extensions.commons.operations.CommonsOperationsUtil

@API(type=INTERNAL,
     src=PUBLIC)
public class CommonsOperationsUtil
extends java.lang.Object

Util methods for common Author operations.


Constructor Summary
CommonsOperationsUtil()
           
 
Method Summary
static void surroundWithFragment(AuthorAccess authorAccess, boolean schemaAware, java.lang.String xmlFragment)
          Surround selection with fragment.
static int surroundWithFragment(AuthorAccess authorAccess, java.lang.String xmlFragment, int start, int end)
          Surround the content between start and end offset with the given fragment.
static void unwrapTags(AuthorAccess authorAccess, AuthorNode nodeToUnwrap)
          Unwrap node tags.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsOperationsUtil

public CommonsOperationsUtil()
Method Detail

unwrapTags

public static void unwrapTags(AuthorAccess authorAccess,
                              AuthorNode nodeToUnwrap)
                       throws javax.swing.text.BadLocationException
Unwrap node tags.

Parameters:
authorAccess - The Author access.
nodeToUnwrap - The node to unwrap.
Throws:
javax.swing.text.BadLocationException

surroundWithFragment

public static void surroundWithFragment(AuthorAccess authorAccess,
                                        boolean schemaAware,
                                        java.lang.String xmlFragment)
                                 throws AuthorOperationException
Surround selection with fragment.

Parameters:
authorAccess - Author access.
schemaAware - true for schema aware operation
xmlFragment - The xml fragment
Throws:
AuthorOperationException

surroundWithFragment

public static int surroundWithFragment(AuthorAccess authorAccess,
                                       java.lang.String xmlFragment,
                                       int start,
                                       int end)
                                throws AuthorOperationException
Surround the content between start and end offset with the given fragment.

Parameters:
authorAccess - Author access.
xmlFragment - The xml fragment
start - The start offset.
end - The end offset.
Returns:
Insertion offset.
Throws:
AuthorOperationException

Oxygen XML Editor 14.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2013. All rights reserved.