Package com.independentsoft.office

# Class Relationship

java.lang.Object
com.independentsoft.office.Relationship

public class Relationship extends Object
The Class Relationship.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Relationship()`
  Instantiates a new relationship.
  `Relationship​(byte[] buffer)`
  Instantiates a new relationship.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Relationship`
  `clone()`
  `RelationshipItemList`
  `getItems()`
  Gets the items.
  `String`
  `getPartName​(String type)`
  Gets the part name.
  `String[]`
  `getPartNames​(String contentType)`
  Gets the part names.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### Relationship

    public Relationship()
    Instantiates a new relationship.

  - ### Relationship

    public Relationship​(byte[] buffer) throws XMLStreamException
    Instantiates a new relationship.
    Parameters:
      `buffer` - the buffer
    Throws:
      `XMLStreamException` - the xML stream exception

- ## Method Details

  - ### getPartName

    public String getPartName​(String type)
    Gets the part name.
    Parameters:
      `type` - the type
    Returns:
      the part name

  - ### getPartNames

    public String[] getPartNames​(String contentType)
    Gets the part names.
    Parameters:
      `contentType` - the content type
    Returns:
      the part names

  - ### clone

    public Relationship clone()
    Overrides:
      `clone` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### getItems

    public RelationshipItemList getItems()
    Gets the items.
    Returns:
      the items