@Deprecated public class DefaultNodeData extends AbstractNodeData
name
MULTIVALUE_FALSE, MULTIVALUE_TRUE, MULTIVALUE_UNDEFINED
Modifier | Constructor and Description |
---|---|
protected |
DefaultNodeData(Content parent,
String name)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deprecated.
Remove this path.
|
boolean |
getBoolean()
Deprecated.
Returns the
boolean representation of the value. |
protected Content |
getContentFromJCRReference()
Deprecated.
Specific implementation for retrieving the referenced node when using a property of type REFERENCE.
|
long |
getContentLength()
Deprecated.
returns size in bytes.
|
Calendar |
getDate()
Deprecated.
Returns the
Calendar representation of the value. |
double |
getDouble()
Deprecated.
Returns the
double representation of the value. |
protected javax.jcr.Node |
getJCRNode()
Deprecated.
|
javax.jcr.Property |
getJCRProperty()
Deprecated.
Access to property at the JCR level.
|
long |
getLong()
Deprecated.
Returns the
long representation of the value. |
InputStream |
getStream()
Deprecated.
Returns the
InputStream representation of the value. |
String |
getString()
Deprecated.
Returns the
String representation of the value. |
int |
getType()
Deprecated.
Returns the
type of this NodeData . |
javax.jcr.Value |
getValue()
Deprecated.
Returns the
value of this NodeData . |
javax.jcr.Value[] |
getValues()
Deprecated.
For multi-value properties.
|
boolean |
isExist()
Deprecated.
checks if the atom exists in the repository.
|
void |
refresh(boolean keepChanges)
Deprecated.
Refreshes current node keeping all changes.
|
void |
save()
Deprecated.
Persists all changes to the repository if validation succeeds.
|
void |
setValue(boolean value)
Deprecated.
set value of type
boolean . |
void |
setValue(Calendar value)
Deprecated.
set value of type
Calendar . |
void |
setValue(Content value)
Deprecated.
Sets a reference value.
|
void |
setValue(double value)
Deprecated.
set value of type
double . |
void |
setValue(InputStream value)
Deprecated.
set value of type
InputStream . |
void |
setValue(int value)
Deprecated.
set value of type
int . |
void |
setValue(long value)
Deprecated.
set value of type
long . |
void |
setValue(String value)
Deprecated.
set value of type
String . |
void |
setValue(javax.jcr.Value value)
Deprecated.
set value of type
Value . |
void |
setValue(javax.jcr.Value[] value)
Deprecated.
set value of type
Value[] . |
getAttribute, getAttributeNames, getHandle, getHierarchyManager, getName, getParent, getReferencedContent, getReferencedContent, getReferencedContent, getString, isGranted, isMultiValue, setAttribute, setAttribute, toString
public javax.jcr.Value getValue()
NodeData
value
of this NodeData
. One of type:
PropertyType.STRING
PropertyType.DATE
PropertyType.SOFTLINK
PropertyType.BINARY
PropertyType.DOUBLE
PropertyType.LONG
PropertyType.BOOLEAN
public javax.jcr.Value[] getValues()
NodeData
public String getString()
NodeData
String
representation of the value.public long getLong()
NodeData
long
representation of the value.public double getDouble()
NodeData
double
representation of the value.public Calendar getDate()
NodeData
Calendar
representation of the value.public boolean getBoolean()
NodeData
boolean
representation of the value.public InputStream getStream()
NodeData
InputStream
representation of the value.public int getType()
NodeData
type
of this NodeData
. One of:
PropertyType.STRING
PropertyType.DATE
PropertyType.SOFTLINK
PropertyType.BINARY
PropertyType.DOUBLE
PropertyType.LONG
PropertyType.BOOLEAN
public long getContentLength()
NodeData
public javax.jcr.Property getJCRProperty()
NodeData
protected javax.jcr.Node getJCRNode()
protected Content getContentFromJCRReference() throws javax.jcr.RepositoryException
AbstractNodeData
getContentFromJCRReference
in class AbstractNodeData
javax.jcr.RepositoryException
public void setValue(String value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
String
.value
- , string to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(int value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
int
.value
- , int value to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(long value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
long
.value
- , long value to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(double value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
double
.value
- , double value to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(boolean value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
boolean
.value
- , boolean value to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(Calendar value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
Calendar
.value
- , Calendar value to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(javax.jcr.Value value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
Value
.javax.jcr.RepositoryException
AccessDeniedException
public void setValue(javax.jcr.Value[] value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
Value[]
.javax.jcr.RepositoryException
AccessDeniedException
public void setValue(Content value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
javax.jcr.RepositoryException
AccessDeniedException
public void setValue(InputStream value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
InputStream
.value
- , InputStream to be setjavax.jcr.RepositoryException
AccessDeniedException
public boolean isExist()
NodeData
public void save() throws javax.jcr.RepositoryException
NodeData
javax.jcr.RepositoryException
public void delete() throws javax.jcr.RepositoryException
NodeData
javax.jcr.RepositoryException
public void refresh(boolean keepChanges) throws javax.jcr.RepositoryException
NodeData
javax.jcr.RepositoryException
Item.refresh(boolean)
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.