|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umich.eecs.tac.props.AbstractTransportable edu.umich.eecs.tac.props.ManufacturerComponentComposable
public class ManufacturerComponentComposable
The manufacturer component composable holds a manufacturer and component. This is the superclass of the
Query
and Product
classes.
Constructor Summary | |
---|---|
ManufacturerComponentComposable()
Creates a manufacturer component composable. |
Method Summary | |
---|---|
protected void |
calculateHashCode()
Returns the calculated hash code. |
protected boolean |
composableEquals(ManufacturerComponentComposable o)
Returns true if a manufacturer component composable has the same manufacturer and component. |
boolean |
equals(java.lang.Object o)
Returns true if the object is a manufacturer component composable that has the same manufacturer and
component. |
java.lang.String |
getComponent()
Returns the string representing the component. |
java.lang.String |
getManufacturer()
The string representing the manufacturer. |
int |
hashCode()
Returns the precalculated hash code. |
protected void |
readWithLock(se.sics.isl.transport.TransportReader reader)
Reads the manufacturer and component from the reader. |
void |
setComponent(java.lang.String component)
Sets the string representing the component. |
void |
setManufacturer(java.lang.String manufacturer)
Set the string representing the manufacturer. |
java.lang.String |
toString()
Returns a string representation of the manufacturer component composable. |
protected void |
writeWithLock(se.sics.isl.transport.TransportWriter writer)
Writes the manufacturer and component to the writer. |
Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportable |
---|
getTransportName, isLocked, lock, lockCheck, read, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ManufacturerComponentComposable()
Method Detail |
---|
public final java.lang.String getManufacturer()
null
.public final void setManufacturer(java.lang.String manufacturer)
manufacturer
- the string representing the manufacturer. May be null
if the manufacturer is
not included in the query.public final java.lang.String getComponent()
null
.public final void setComponent(java.lang.String component) throws java.lang.IllegalStateException
component
- the string representing the component. May be null
if the component is not included
in the query.
java.lang.IllegalStateException
- if the object is locked.protected final void readWithLock(se.sics.isl.transport.TransportReader reader) throws java.text.ParseException
readWithLock
in class AbstractTransportable
reader
- the reader to read data from.
java.text.ParseException
- if an exception occurs while reading the manufacturer and component.protected final void writeWithLock(se.sics.isl.transport.TransportWriter writer)
writeWithLock
in class AbstractTransportable
writer
- the writer to write data to.public final int hashCode()
hashCode
in class java.lang.Object
protected final void calculateHashCode()
public final java.lang.String toString()
toString
in class java.lang.Object
protected final boolean composableEquals(ManufacturerComponentComposable o)
true
if a manufacturer component composable has the same manufacturer and component.
o
- the other manufacturer component composable.
true
if a manufacturer component composable has the same manufacturer and component.public final boolean equals(java.lang.Object o)
true
if the object is a manufacturer component composable that has the same manufacturer and
component.
equals
in class java.lang.Object
o
- the object being compared.
true
if the object is a manufacturer component composable that has the same manufacturer and
component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |