public class WGRelationData
extends java.lang.Object
getTargetStructkey()
and the language of getTargetLanguage()
Constructor and Description |
---|
WGRelationData(WGDatabase database,
WGContentKey parentContentKey,
java.lang.String name,
java.lang.Object structkey,
java.lang.String language,
int type) |
WGRelationData(WGDatabase database,
WGContentKey parentContentKey,
java.lang.String name,
java.lang.Object structkey,
java.lang.String language,
int type,
java.lang.String group) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGroup()
Returns the group name of the relation, null if it does not belong to a group
|
java.lang.String |
getName()
Returns the name of the relation
|
WGContent |
getParentContent()
Returns the content which owns this relation
|
WGContentKey |
getParentContentKey()
Returns the content key of the content that owns this relation
|
WGContent |
getTargetContent()
Retrieves the current target content of this relation
|
java.lang.String |
getTargetLanguage()
Returns the language name of the targeted content
|
java.lang.Object |
getTargetStructkey()
Returns the struct key of the targeted content
|
int |
getType()
Returns the type of relation, a constant of WGContent.RELATIONTYPE_...
|
void |
setTargetLanguage(java.lang.String lang)
Returns the language name of the targeted content
|
public WGRelationData(WGDatabase database, WGContentKey parentContentKey, java.lang.String name, java.lang.Object structkey, java.lang.String language, int type, java.lang.String group)
public WGRelationData(WGDatabase database, WGContentKey parentContentKey, java.lang.String name, java.lang.Object structkey, java.lang.String language, int type)
public java.lang.Object getTargetStructkey()
public java.lang.String getTargetLanguage()
public void setTargetLanguage(java.lang.String lang)
public WGContentKey getParentContentKey()
public int getType()
public java.lang.String getName()
public java.lang.String getGroup()
public WGContent getParentContent() throws WGAPIException
WGAPIException
public WGContent getTargetContent() throws WGAPIException
WGAPIException