Class WorksheetPart

All Implemented Interfaces:
XPathEnabled<Worksheet>

public class WorksheetPart extends JaxbSmlPart<Worksheet>
  • Constructor Details

  • Method Details

    • init

      public void init()
    • setJaxbElement

      public void setJaxbElement(Worksheet jaxbElement)
      Description copied from class: JaxbXmlPartXPathAware
      You can't use this override to create/update a binder, since this would set the jaxbElement field to something different to the object being passed in (as a consequence of the process to create a binder). We don't want that, because calling code may then continue to manipulate the field, without effect.. See instead createBinderAndJaxbElement
      Overrides:
      setJaxbElement in class JaxbXmlPartXPathAware<Worksheet>
    • unmarshal

      public Worksheet unmarshal(InputStream is) throws jakarta.xml.bind.JAXBException
      Description copied from class: JaxbXmlPartXPathAware
      Unmarshal XML data from the specified InputStream and return the resulting content tree. Validation event location information may be incomplete when using this form of the unmarshal API.

      Implements Unmarshal Global Root Element.

      Overrides:
      unmarshal in class JaxbXmlPartXPathAware<Worksheet>
      Parameters:
      is - the InputStream to unmarshal XML data from
      Returns:
      the newly created root object of the java content tree
      Throws:
      jakarta.xml.bind.JAXBException - If any unexpected errors occur while unmarshalling
    • unmarshal

      public Worksheet unmarshal(Element el) throws jakarta.xml.bind.JAXBException
      Overrides:
      unmarshal in class JaxbXmlPartXPathAware<Worksheet>
      Throws:
      jakarta.xml.bind.JAXBException
    • getWorkbookPart

      public WorkbookPart getWorkbookPart()
      Get the WorkbookPart.
      Returns:
      Since:
      3.3.3
    • getWorksheetPart

      public static WorksheetPart getWorksheetPart(Cell cell)
      Given a cell, get its WorksheetPart
      Returns:
      Since:
      8.0.0
    • getWorksheetPart

      public static WorksheetPart getWorksheetPart(Row row)
      Given a row, get its WorksheetPart
      Returns:
      Since:
      8.0.0
    • getWorksheetPart

      public static WorksheetPart getWorksheetPart(SheetData sheetData)
      Given SheetData, get its WorksheetPart
      Returns:
      Since:
      8.0.0
    • getWorksheetPart

      public static WorksheetPart getWorksheetPart(Worksheet worksheet)
      Given a worksheet, get its WorksheetPart
      Returns:
      Since:
      8.0.0