public class JCRProperty extends Object implements JCRImapConstants, Persistent, Property
Property
Modifier and Type | Field and Description |
---|---|
static String |
LOCALNAME_PROPERTY |
static String |
NAMESPACE_PROPERTY |
static String |
ORDER_PROPERTY |
static String |
VALUE_PROPERTY |
NODE_DELIMITER
Constructor and Description |
---|
JCRProperty(javax.jcr.Node node,
org.slf4j.Logger logger) |
JCRProperty(Property property,
org.slf4j.Logger logger) |
JCRProperty(String namespace,
String localName,
String value,
org.slf4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLocalName()
Gets the local part of the name of the property.
|
String |
getNamespace()
Gets the namespace for the name.
|
javax.jcr.Node |
getNode()
Return underlying Node
|
int |
getOrder() |
String |
getValue()
Gets the value for this property.
|
int |
hashCode() |
boolean |
isPersistent()
Return if the object is persistent
|
void |
merge(javax.jcr.Node node)
Merge the object with the node
|
String |
toString()
Constructs a
String with all attributes
in name = value format. |
public static final String NAMESPACE_PROPERTY
public static final String LOCALNAME_PROPERTY
public static final String VALUE_PROPERTY
public static final String ORDER_PROPERTY
public JCRProperty(javax.jcr.Node node, org.slf4j.Logger logger)
public JCRProperty(String namespace, String localName, String value, org.slf4j.Logger logger)
public JCRProperty(Property property, org.slf4j.Logger logger)
public int getOrder()
public javax.jcr.Node getNode()
Persistent
getNode
in interface Persistent
public String getLocalName()
Property
getLocalName
in interface Property
public String getNamespace()
Property
getNamespace
in interface Property
public String getValue()
Property
public boolean isPersistent()
Persistent
isPersistent
in interface Persistent
true
if object is persistent else false
public void merge(javax.jcr.Node node) throws javax.jcr.RepositoryException
Persistent
merge
in interface Persistent
javax.jcr.RepositoryException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.