public class JcrLabeledResource extends java.lang.Object implements LabeledResource
Constructor and Description |
---|
JcrLabeledResource(Node node)
Creates a new JcrLabeledResource and initializes its field from the
properties of the given node or it's
jcr:content child node. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns the description of this resource.
|
java.lang.String |
getName()
Returns the name of this resource.
|
java.lang.String |
getPath()
Returns the path of this resource
|
java.lang.String |
getTitle()
Returns the tile of this resource.
|
public JcrLabeledResource(Node node) throws RepositoryException
jcr:content
child node.node
- the nodeRepositoryException
- if an error during repository access occurs.public java.lang.String getPath()
getPath
in interface LabeledResource
public java.lang.String getName()
getName
in interface LabeledResource
public java.lang.String getTitle()
getTitle
in interface LabeledResource
jcr:title
property of the underlying
node or of it's jcr:content
child node if it exists.
null
otherwise.public java.lang.String getDescription()
getDescription
in interface LabeledResource
jcr:description
property of the underlying
node or of it's jcr:content
child node if it exists.
null
otherwise.Copyright © 2010 - 2020 Adobe. All Rights Reserved