public class ClientProperty extends ClientItem
RemoteProperty
interface. This class makes a remote property locally available using
the JCR Property interface.javax.jcr.Property,
RemoteProperty| Constructor and Description |
|---|
ClientProperty(Session session,
RemoteProperty remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ItemVisitor visitor)
Calls the
ItemVisitor.visit(Property
method of the given visitor. |
Binary |
getBinary()
Returns the binary value of this property.
|
boolean |
getBoolean()
Returns the boolean value of this property.
|
java.util.Calendar |
getDate()
Returns the date value of this property.
|
java.math.BigDecimal |
getDecimal()
Returns the decimal value of this property.
|
PropertyDefinition |
getDefinition() |
double |
getDouble()
Returns the double value of this property.
|
long |
getLength() |
long[] |
getLengths() |
long |
getLong()
Returns the long value of this property.
|
Node |
getNode()
Returns the reference value of this property.
|
Property |
getProperty() |
java.io.InputStream |
getStream()
Returns the binary value of this property.
|
java.lang.String |
getString()
Returns the string value of this property.
|
int |
getType() |
Value |
getValue() |
Value[] |
getValues() |
boolean |
isMultiple() |
void |
setValue(Binary value)
Sets the binary value of this property.
|
void |
setValue(boolean value)
Sets the boolean value of this property.
|
void |
setValue(java.util.Calendar value)
Sets the date value of this property.
|
void |
setValue(double value)
Sets the double value of this property.
|
void |
setValue(java.io.InputStream value)
Sets the binary value of this property.
|
void |
setValue(long value)
Sets the long value of this property.
|
void |
setValue(Node value)
Sets the reference value of this property.
|
void |
setValue(Value value) |
void |
setValue(Value[] values) |
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, savepublic ClientProperty(Session session,
RemoteProperty remote,
LocalAdapterFactory factory)
session - current sessionremote - remote propertyfactory - local adapter factorypublic void accept(ItemVisitor visitor)
throws RepositoryException
ItemVisitor.visit(Property
method of the given visitor. Does not contact the remote property, but
the visitor may invoke other methods that do contact the remote property.
Accepts the visitor to visit this item. Node and
Property subclasses should override this method
to call the appropriate ItemVisitor methods,
as the default implementation does nothing.
accept in class ClientItemRepositoryExceptionpublic boolean getBoolean()
throws RepositoryException
RepositoryExceptionpublic java.util.Calendar getDate()
throws RepositoryException
RepositoryExceptionpublic double getDouble()
throws RepositoryException
RepositoryExceptionpublic long getLong()
throws RepositoryException
RepositoryExceptionpublic Binary getBinary()
throws RepositoryException
RepositoryExceptionpublic java.math.BigDecimal getDecimal()
throws RepositoryException
RepositoryExceptionpublic java.io.InputStream getStream()
throws RepositoryException
RepositoryExceptionpublic java.lang.String getString()
throws RepositoryException
RepositoryExceptionpublic Value getValue()
throws RepositoryException
RepositoryExceptionpublic Value[] getValues()
throws RepositoryException
RepositoryExceptionpublic void setValue(boolean value)
throws RepositoryException
RepositoryExceptionpublic void setValue(java.util.Calendar value)
throws RepositoryException
RepositoryExceptionpublic void setValue(double value)
throws RepositoryException
RepositoryExceptionpublic void setValue(java.io.InputStream value)
throws RepositoryException
RepositoryExceptionpublic void setValue(long value)
throws RepositoryException
RepositoryExceptionpublic void setValue(Binary value)
throws RepositoryException
RepositoryExceptionpublic void setValue(Node value)
throws RepositoryException
RepositoryExceptionpublic void setValue(Value value)
throws RepositoryException
RepositoryExceptionpublic void setValue(Value[] values)
throws RepositoryException
RepositoryExceptionpublic Node getNode()
throws RepositoryException
RepositoryExceptionpublic Property getProperty()
throws RepositoryException
RepositoryExceptionpublic long getLength()
throws RepositoryException
RepositoryExceptionpublic long[] getLengths()
throws RepositoryException
RepositoryExceptionpublic PropertyDefinition getDefinition()
throws RepositoryException
RepositoryExceptionpublic int getType()
throws RepositoryException
RepositoryExceptionpublic boolean isMultiple()
throws RepositoryException
RepositoryException"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"