org.apache.poi.xwpf.converter.core.utils
Class XWPFRunHelper

java.lang.Object
  extended by org.apache.poi.xwpf.converter.core.utils.XWPFRunHelper

public class XWPFRunHelper
extends Object

Helper for w:r run.


Constructor Summary
XWPFRunHelper()
           
 
Method Summary
static org.openxmlformats.schemas.wordprocessingml.x2006.main.STBrType.Enum getBrType(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBr br)
          Returns the br type;
static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFldChar getFldChar(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR r)
          Returns the fldChar of the given run and null otherwise.
static org.openxmlformats.schemas.wordprocessingml.x2006.main.STFldCharType.Enum getFldCharType(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR r)
          Returns the fldCharType of the given run and null otherwise.
static String getInstrText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR r)
          Returns the instr text of the given run and null otherwise.
static String getInstrTextHyperlink(String instr)
          Returns the hyperlink of teh given instr and null otehrwise.
static boolean isInstrTextPage(String instr)
          Returns true if the given instr is PAGE and false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWPFRunHelper

public XWPFRunHelper()
Method Detail

getFldChar

public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFldChar getFldChar(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR r)
Returns the fldChar of the given run and null otherwise.

Parameters:
r -
Returns:

getFldCharType

public static org.openxmlformats.schemas.wordprocessingml.x2006.main.STFldCharType.Enum getFldCharType(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR r)
Returns the fldCharType of the given run and null otherwise.

Parameters:
r -
Returns:

getInstrText

public static String getInstrText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR r)
Returns the instr text of the given run and null otherwise.

Parameters:
r -
Returns:

isInstrTextPage

public static boolean isInstrTextPage(String instr)
Returns true if the given instr is PAGE and false otherwise.

Parameters:
instr -
Returns:

getInstrTextHyperlink

public static String getInstrTextHyperlink(String instr)
Returns the hyperlink of teh given instr and null otehrwise.

HYPERLINK "http://code.google.com/p/xdocreport"

Parameters:
instr -
Returns:

getBrType

public static org.openxmlformats.schemas.wordprocessingml.x2006.main.STBrType.Enum getBrType(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBr br)
Returns the br type;

Parameters:
br -
Returns:


Copyright © 2013. All rights reserved.