|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.hp.hpl.swade.portal.NodeWrapper
Wrapper for RDFNodes to simplify template rendering.
| Field Summary | |
protected DataSource |
datasource
The datasource this node is located in |
protected java.lang.String |
name
Display name for this node |
protected com.hp.hpl.jena.rdf.model.RDFNode |
node
The underlying RDFNode |
| Constructor Summary | |
NodeWrapper(com.hp.hpl.jena.rdf.model.RDFNode node,
DataSource datasource)
Constructor. |
|
| Method Summary | |
int |
compareTo(java.lang.Object o1)
Comparison based on displayname only. |
DataSource |
getDataSource()
Return the datasource which holds this node |
java.lang.String |
getEncoding()
Return an encoding of the Node suitable for transmission over a URL parameter. |
java.lang.String |
getName()
Return a displayable name for this node, uses the label if available. |
com.hp.hpl.jena.rdf.model.RDFNode |
getNode()
Return the RDFNode which this wraps |
boolean |
isLiteral()
Return true if the node is a literal. |
java.lang.String |
render(java.lang.String context,
javax.servlet.http.HttpServletRequest request)
Return the HMTL rendering of this Node as a string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected com.hp.hpl.jena.rdf.model.RDFNode node
protected java.lang.String name
protected DataSource datasource
| Constructor Detail |
public NodeWrapper(com.hp.hpl.jena.rdf.model.RDFNode node,
DataSource datasource)
| Method Detail |
public java.lang.String getName()
public DataSource getDataSource()
public int compareTo(java.lang.Object o1)
compareTo in interface java.lang.Comparablepublic boolean isLiteral()
public java.lang.String render(java.lang.String context,
javax.servlet.http.HttpServletRequest request)
public java.lang.String getEncoding()
public com.hp.hpl.jena.rdf.model.RDFNode getNode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||