public class PartContainer extends java.lang.Object implements java.lang.Iterable<Part>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<Part> |
partList
Underlying parts.
|
Constructor and Description |
---|
PartContainer()
Basic constructor which initializes an empty part container.
|
Modifier and Type | Method and Description |
---|---|
void |
addPart(Part newPart)
Add a new part.
|
void |
addPart(java.lang.String partName,
byte[] partData)
Add a new part specifying the part name and an array of bytes for the part
content.
|
boolean |
equals(java.lang.Object obj)
Helper function to compare with another object.
|
java.util.List<Part> |
getList()
Get the underlying list of parts.
|
int |
hashCode() |
protected boolean |
isPartExists(Part testPart)
Check if a part exists.
|
protected boolean |
isPartExit(Part testPart)
Deprecated.
since V6R2015x, replaced by
isPartExists(Part) |
java.util.Iterator<Part> |
iterator()
Gets an iterator over the contained parts.
|
java.lang.String |
toString()
Simple part container serializer.
|
protected java.util.ArrayList<Part> partList
public PartContainer()
public java.util.Iterator<Part> iterator()
iterator
in interface java.lang.Iterable<Part>
protected boolean isPartExists(Part testPart)
testPart
- @Deprecated protected boolean isPartExit(Part testPart)
isPartExists(Part)
testPart
- public void addPart(Part newPart)
newPart
- Part to add.public void addPart(java.lang.String partName, byte[] partData)
partName
- Part name.partData
- Part data.public java.util.List<Part> getList()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to be compared.true
if the object if a part container and if it
contains the same list of parts, false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2021 Dassault Systèmes, All Rights Reserved.