public class AnyToAnyData extends BasicData implements NameableData, LoggableData
AnyToAny
,
Developer documentation: Other classesModifier and Type | Field and Description |
---|---|
private java.lang.String |
description |
private int |
fromId |
private int |
fromType |
private java.lang.String |
name |
private int |
toId |
private int |
toType |
private boolean |
usesTo |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
AnyToAnyData() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get the description for the item.
|
int |
getFromId()
The ID of the item we are linking from.
|
int |
getFromType()
The type code of the item we are linking from.
|
java.lang.String |
getName()
Get the name of the item.
|
int |
getToId()
The ID of the item we are linking to.
|
int |
getToType()
The type code of the item we are linking to.
|
boolean |
isUsingTo()
If the link counts as using the item we are linking to.
|
void |
setDescription(java.lang.String description)
Set the description for the item.
|
void |
setFromId(int fromId) |
void |
setFromType(int fromType) |
void |
setName(java.lang.String name)
Set the name of the item.
|
void |
setToId(int toId) |
void |
setToType(int toType) |
void |
setUsingTo(boolean usesTo) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private java.lang.String name
private java.lang.String description
private int fromId
private int fromType
private int toId
private int toType
private boolean usesTo
public java.lang.String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(java.lang.String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic java.lang.String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(java.lang.String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.setDescription
in interface NameableData
description
- The new description for the itempublic int getFromId()
public void setFromId(int fromId)
public int getFromType()
public void setFromType(int fromType)
public int getToId()
public void setToId(int toId)
public int getToType()
public void setToType(int toType)
public boolean isUsingTo()
public void setUsingTo(boolean usesTo)