org.silverpeas.node.web
Class NodeEntity
java.lang.Object
org.silverpeas.node.web.NodeEntity
- All Implemented Interfaces:
- Exposable, Serializable
public class NodeEntity
- extends Object
- implements Exposable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeEntity
public NodeEntity()
fromNodeDetail
public static NodeEntity fromNodeDetail(NodeDetail node,
URI uri)
- Creates a new node entity from the specified node.
- Parameters:
node
- the node to entitify.
- Returns:
- the entity representing the specified node.
fromNodeDetail
public static NodeEntity fromNodeDetail(NodeDetail node,
URI uri,
String lang)
fromNodeDetail
public static NodeEntity fromNodeDetail(NodeDetail node,
String uri)
fromNodeDetail
public static NodeEntity fromNodeDetail(NodeDetail node,
String uri,
String lang)
getURI
public URI getURI()
- Description copied from interface:
Exposable
- Gets the URI at which this resource is published and can be accessed.
- Specified by:
getURI
in interface Exposable
- Returns:
- the web resource URI.
setURI
public void setURI(URI uri)
setChildren
public void setChildren(NodeEntity[] children)
getChildren
public NodeEntity[] getChildren()
setData
public final void setData(String data)
getData
public String getData()
setAttr
public final void setAttr(NodeAttrEntity attr)
getAttr
public NodeAttrEntity getAttr()
setState
public void setState(String state)
getState
public String getState()
setChildrenURI
public final void setChildrenURI(URI childrenURI)
getChildrenURI
public final URI getChildrenURI(URI uri)
getChildrenURI
public URI getChildrenURI()
setTranslations
public final void setTranslations(NodeTranslationEntity[] translations)
getTranslations
public NodeTranslationEntity[] getTranslations()
toNodePK
public NodePK toNodePK()
- Gets the node pk objet that this entity represents.
- Returns:
- a node PK.
Copyright © 2016 Silverpeas. All Rights Reserved.