|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.cms.site.AbstractLink
public abstract class AbstractLink
The AbstractLink class encapsulates a string label and a associated language.
Constructor Summary | |
---|---|
AbstractLink(DocumentFactory factory,
SiteNode node,
java.lang.String _label,
java.lang.String _language)
Creates a new AbstractLink object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
(non-Javadoc) |
Document |
getDocument()
|
java.lang.String |
getLabel()
Get the actual label of the AbstractLink object |
java.lang.String |
getLanguage()
Get the language of this AbstractLink object |
SiteNode |
getNode()
|
int |
hashCode()
(non-Javadoc) |
protected void |
save()
|
void |
setLabel(java.lang.String label)
|
java.lang.String |
toString()
(non-Javadoc) |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.lenya.cms.site.Link |
---|
delete |
Constructor Detail |
---|
public AbstractLink(DocumentFactory factory, SiteNode node, java.lang.String _label, java.lang.String _language)
factory
- The document factory.node
- The site node._label
- the actual label_language
- the languageMethod Detail |
---|
public java.lang.String getLabel()
getLabel
in interface Link
public java.lang.String getLanguage()
getLanguage
in interface Link
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public Document getDocument()
getDocument
in interface Link
public SiteNode getNode()
getNode
in interface Link
public void setLabel(java.lang.String label)
setLabel
in interface Link
label
- The new label.protected void save()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |