public abstract class Product
extends java.lang.Object
Constructor and Description |
---|
Product() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addFacet(Facet f)
Add a new facet to a product.
|
abstract boolean |
equals(java.lang.Object obj) |
abstract void |
exportProd2List(javax.xml.stream.XMLStreamWriter writer)
Writes the product list entry, which is at the beginning of a workflow.
|
abstract void |
exportWf2Xml(javax.xml.stream.XMLStreamWriter writer,
int id)
Writes the xml representation to the XMLStreamWriter
|
abstract java.lang.String |
getName()
A products must have a name
|
abstract Facet |
getNextFacet()
Get next facet of the product
|
abstract int |
hashCode() |
abstract void |
setName(java.lang.String name)
Sets the product name
|
public abstract java.lang.String getName()
public abstract void setName(java.lang.String name) throws EmptyProductException
name
- EmptyProductException
public abstract void addFacet(Facet f)
facet
- public abstract Facet getNextFacet()
public abstract void exportWf2Xml(javax.xml.stream.XMLStreamWriter writer, int id)
writer
- id
- The id of the Product.public abstract void exportProd2List(javax.xml.stream.XMLStreamWriter writer) throws EmptyProductException
writer
- EmptyProductException
public abstract int hashCode()
hashCode
in class java.lang.Object
public abstract boolean equals(java.lang.Object obj)
equals
in class java.lang.Object