fr.opensagres.xdocreport.document.odt
Class ODTUtils

java.lang.Object
  extended by fr.opensagres.xdocreport.document.odt.ODTUtils

public class ODTUtils
extends Object

Utilities for Open Office ODT.


Constructor Summary
ODTUtils()
           
 
Method Summary
static boolean isDrawFrame(String uri, String localName, String name)
          Returns true if element is draw:frame and false otherwise.
static boolean isDrawImage(String uri, String localName, String name)
          Returns true if element is draw:image and false otherwise.
static boolean isODT(XDocArchive documentArchive)
          Returns true if the given document archive is a ODT and false otherwise.
static boolean isOfficeAutomaticStyles(String uri, String localName, String name)
          Returns true if element is office:automatic-styles and false otherwise.
static boolean isTable(String uri, String localName, String name)
          Returns true if element is table:table and false otherwise.
static boolean isTableRow(String uri, String localName, String name)
          Returns true if element is table:table-row and false otherwise.
static boolean isTextA(String uri, String localName, String name)
          Returns true if element is text:a and false otherwise.
static boolean isTextInput(String uri, String localName, String name)
          Returns true if element is text:text-input and false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ODTUtils

public ODTUtils()
Method Detail

isODT

public static boolean isODT(XDocArchive documentArchive)
Returns true if the given document archive is a ODT and false otherwise.

Parameters:
documentArchive -
Returns:

isTable

public static boolean isTable(String uri,
                              String localName,
                              String name)
Returns true if element is table:table and false otherwise.

Parameters:
uri -
localName -
name -
Returns:

isTableRow

public static boolean isTableRow(String uri,
                                 String localName,
                                 String name)
Returns true if element is table:table-row and false otherwise.

Parameters:
uri -
localName -
name -
Returns:

isTextInput

public static boolean isTextInput(String uri,
                                  String localName,
                                  String name)
Returns true if element is text:text-input and false otherwise.

Parameters:
uri -
localName -
name -
Returns:

isDrawFrame

public static boolean isDrawFrame(String uri,
                                  String localName,
                                  String name)
Returns true if element is draw:frame and false otherwise.

Parameters:
uri -
localName -
name -
Returns:

isDrawImage

public static boolean isDrawImage(String uri,
                                  String localName,
                                  String name)
Returns true if element is draw:image and false otherwise.

Parameters:
uri -
localName -
name -
Returns:

isTextA

public static boolean isTextA(String uri,
                              String localName,
                              String name)
Returns true if element is text:a and false otherwise.

Parameters:
uri -
localName -
name -
Returns:

isOfficeAutomaticStyles

public static boolean isOfficeAutomaticStyles(String uri,
                                              String localName,
                                              String name)
Returns true if element is office:automatic-styles and false otherwise.

Parameters:
uri -
localName -
name -
Returns:


Copyright © 2013. All rights reserved.