Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.poi.openxml4j.opc
Class PackagePartCollection

    java.lang.Object
      org.apache.poi.openxml4j.opc.PackagePartCollection

All Implemented Interfaces:
  java.io.Serializable

    public final class PackagePartCollection

extends java.lang.Object
implements java.io.Serializable

A package part collection.

Version:
  0.1
Author:
  Julien Chable
See Also:
  Serialized Form

Constructor Summary
`PackagePartCollection()`

Method Summary
`boolean` | `containsKey(PackagePartName partName)`
`PackagePart` | `get(PackagePartName partName)`
`PackagePart` | `put(PackagePartName partName, PackagePart part)` Check rule [M1.11]: a package implementer shall neither create nor recognize a part with a part name derived from another part name by appending segments to it.
`PackagePart` | `remove(PackagePartName key)`
`int` | `size()`
`java.util.Collection<PackagePart>` | `sortedValues()` The values themselves should be returned in sorted order.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PackagePartCollection

    public PackagePartCollection()

Method Detail

### put

    public PackagePart put(PackagePartName partName,
                           PackagePart part)

  Check rule [M1.11]: a package implementer shall neither create nor recognize a part with a part name derived from another part name by appending segments to it.

  Throws:
    `InvalidOperationException` - Throws if you try to add a part with a name derived from another part name.

### remove

    public PackagePart remove(PackagePartName key)

### sortedValues

    public java.util.Collection<PackagePart> sortedValues()

  The values themselves should be returned in sorted order. Doing it here avoids paying the high cost of Natural Ordering per insertion.

### containsKey

    public boolean containsKey(PackagePartName partName)

### get

    public PackagePart get(PackagePartName partName)

### size

    public int size()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2017 The Apache Software Foundation or its licensors, as applicable.