|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeData
Represents a content value object. If the node data does not have any value
isExist()
returns false. As soon a value is set - null is not considered a value - the
node data starts to exist. The various value read methods (getString()
,
getBoolean()
, ..) will always return a value (default or null)
Field Summary | |
---|---|
static int |
MULTIVALUE_FALSE
|
static int |
MULTIVALUE_TRUE
|
static int |
MULTIVALUE_UNDEFINED
|
Method Summary | |
---|---|
void |
delete()
Remove this path. |
String |
getAttribute(String name)
get attribute, available only if NodeData is of type Binary . |
Collection<String> |
getAttributeNames()
get all attribute names. |
boolean |
getBoolean()
Returns the boolean representation of the value. |
long |
getContentLength()
returns size in bytes. |
Calendar |
getDate()
Returns the Calendar representation of the value. |
double |
getDouble()
Returns the double representation of the value. |
String |
getHandle()
get a handle representing path relative to the content repository. |
HierarchyManager |
getHierarchyManager()
|
javax.jcr.Property |
getJCRProperty()
Access to property at the JCR level. |
long |
getLong()
Returns the long representation of the value. |
String |
getName()
|
Content |
getParent()
returns Parent node. |
Content |
getReferencedContent()
Returns the Content that this NodeData references (if its type is PropertyType.REFERENCE). |
Content |
getReferencedContent(String repositoryId)
Same as getReferencedContent() but achieves the referenced node from a different workspace. |
InputStream |
getStream()
Returns the InputStream representation of the value. |
String |
getString()
Returns the String representation of the value. |
String |
getString(String lineBreak)
Returns the String representation of the value: decodes like breaks with the specified regular
expression. |
int |
getType()
Returns the type of this NodeData . |
javax.jcr.Value |
getValue()
Returns the value of this NodeData . |
javax.jcr.Value[] |
getValues()
For multi-value properties. |
boolean |
isExist()
checks if the atom exists in the repository. |
boolean |
isGranted(long permissions)
checks for the allowed access rights. |
int |
isMultiValue()
for multi-value controls. |
void |
refresh(boolean keepChanges)
Refreshes current node keeping all changes. |
void |
save()
Persists all changes to the repository if validation succeeds. |
void |
setAttribute(String name,
Calendar value)
set attribute, available only if NodeData is of type Binary . |
void |
setAttribute(String name,
String value)
set attribute, available only if NodeData is of type Binary . |
void |
setValue(boolean value)
set value of type boolean . |
void |
setValue(Calendar value)
set value of type Calendar . |
void |
setValue(Content value)
Sets a reference value. |
void |
setValue(double value)
set value of type double . |
void |
setValue(InputStream value)
set value of type InputStream . |
void |
setValue(int value)
set value of type int . |
void |
setValue(long value)
set value of type long . |
void |
setValue(String value)
set value of type String . |
void |
setValue(javax.jcr.Value value)
set value of type Value . |
void |
setValue(javax.jcr.Value[] value)
set value of type Value[] . |
Field Detail |
---|
static final int MULTIVALUE_UNDEFINED
static final int MULTIVALUE_TRUE
static final int MULTIVALUE_FALSE
Method Detail |
---|
javax.jcr.Value getValue()
value
of this NodeData
. One of type:
PropertyType.STRING
PropertyType.DATE
PropertyType.SOFTLINK
PropertyType.BINARY
PropertyType.DOUBLE
PropertyType.LONG
PropertyType.BOOLEAN
javax.jcr.Value[] getValues()
String getString(String lineBreak)
String
representation of the value: decodes like breaks with the specified regular
expression.
lineBreak
- , regular expression
String getString()
String
representation of the value.
long getLong()
long
representation of the value.
double getDouble()
double
representation of the value.
Calendar getDate()
Calendar
representation of the value.
boolean getBoolean()
boolean
representation of the value.
InputStream getStream()
InputStream
representation of the value.
Content getReferencedContent() throws javax.jcr.RepositoryException, javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
javax.jcr.RepositoryException
javax.jcr.PathNotFoundException
Content getReferencedContent(String repositoryId) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getReferencedContent()
but achieves the referenced node from a different workspace.
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
int getType()
type
of this NodeData
. One of:
PropertyType.STRING
PropertyType.DATE
PropertyType.SOFTLINK
PropertyType.BINARY
PropertyType.DOUBLE
PropertyType.LONG
PropertyType.BOOLEAN
String getName()
long getContentLength()
javax.jcr.Property getJCRProperty()
void setValue(String value) throws javax.jcr.RepositoryException, AccessDeniedException
String
.
value
- , string to be set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(int value) throws javax.jcr.RepositoryException, AccessDeniedException
int
.
value
- , int value to be set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(long value) throws javax.jcr.RepositoryException, AccessDeniedException
long
.
value
- , long value to be set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(InputStream value) throws javax.jcr.RepositoryException, AccessDeniedException
InputStream
.
value
- , InputStream to be set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(double value) throws javax.jcr.RepositoryException, AccessDeniedException
double
.
value
- , double value to be set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(boolean value) throws javax.jcr.RepositoryException, AccessDeniedException
boolean
.
value
- , boolean value to be set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(Calendar value) throws javax.jcr.RepositoryException, AccessDeniedException
Calendar
.
value
- , Calendar value to be set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(Content value) throws javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.RepositoryException
AccessDeniedException
void setValue(javax.jcr.Value value) throws javax.jcr.RepositoryException, AccessDeniedException
Value
.
value
-
javax.jcr.RepositoryException
AccessDeniedException
void setValue(javax.jcr.Value[] value) throws javax.jcr.RepositoryException, AccessDeniedException
Value[]
.
value
-
javax.jcr.RepositoryException
AccessDeniedException
void setAttribute(String name, String value) throws javax.jcr.RepositoryException, AccessDeniedException, UnsupportedOperationException
Binary
.
name
- value
-
javax.jcr.RepositoryException
AccessDeniedException
UnsupportedOperationException
- if its not a Binary typevoid setAttribute(String name, Calendar value) throws javax.jcr.RepositoryException, AccessDeniedException, UnsupportedOperationException
Binary
.
name
- value
-
javax.jcr.RepositoryException
AccessDeniedException
UnsupportedOperationException
- if its not a Binary typeString getAttribute(String name)
Binary
.
name
-
Collection<String> getAttributeNames() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
boolean isExist()
String getHandle()
void save() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
boolean isGranted(long permissions)
permissions
- as defined in javax.jcr.Permission
void delete() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void refresh(boolean keepChanges) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Item.refresh(boolean)
int isMultiValue()
Content getParent() throws AccessDeniedException, javax.jcr.ItemNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
AccessDeniedException
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
HierarchyManager getHierarchyManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |