|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.rmi.client.ClientObject
org.apache.jackrabbit.rmi.client.ClientItem
org.apache.jackrabbit.rmi.client.ClientProperty
public class ClientProperty
Local adapter for the JCR-RMI
RemoteProperty
interface. This class makes a remote property locally available using
the JCR Property
interface.
Property
,
RemoteProperty
Constructor Summary | |
---|---|
ClientProperty(Session session,
RemoteProperty remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote property. |
Method Summary | |
---|---|
void |
accept(ItemVisitor visitor)
Calls the ItemVisitor.visit(Property
method of the given visitor. |
boolean |
getBoolean()
Returns the boolean value of this property. |
Calendar |
getDate()
Returns the date 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. |
InputStream |
getStream()
Returns the binary value of this property. |
String |
getString()
Returns the string value of this property. |
int |
getType()
|
Value |
getValue()
|
Value[] |
getValues()
|
void |
setValue(boolean value)
Sets the boolean value of this property. |
void |
setValue(Calendar value)
Sets the date value of this property. |
void |
setValue(double value)
Sets the double value of this property. |
void |
setValue(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(String value)
Sets the string value of this property. |
void |
setValue(String[] strings)
Sets the string values of this property. |
void |
setValue(Value value)
|
void |
setValue(Value[] values)
|
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientItem |
---|
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save |
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject |
---|
getFactory, getItem, getNode, getNodeTypeArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jcr.Item |
---|
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save |
Constructor Detail |
---|
public ClientProperty(Session session, RemoteProperty remote, LocalAdapterFactory factory)
session
- current sessionremote
- remote propertyfactory
- local adapter factoryMethod Detail |
---|
public 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 interface Item
accept
in class ClientItem
RepositoryException
public boolean getBoolean() throws RepositoryException
getBoolean
in interface Property
RepositoryException
public Calendar getDate() throws RepositoryException
getDate
in interface Property
RepositoryException
public double getDouble() throws RepositoryException
getDouble
in interface Property
RepositoryException
public long getLong() throws RepositoryException
getLong
in interface Property
RepositoryException
public InputStream getStream() throws RepositoryException
getStream
in interface Property
RepositoryException
public String getString() throws RepositoryException
getString
in interface Property
RepositoryException
public Value getValue() throws RepositoryException
getValue
in interface Property
RepositoryException
public Value[] getValues() throws RepositoryException
getValues
in interface Property
RepositoryException
public void setValue(boolean value) throws RepositoryException
setValue
in interface Property
RepositoryException
public void setValue(Calendar value) throws RepositoryException
setValue
in interface Property
RepositoryException
public void setValue(double value) throws RepositoryException
setValue
in interface Property
RepositoryException
public void setValue(InputStream value) throws RepositoryException
setValue
in interface Property
RepositoryException
public void setValue(long value) throws RepositoryException
setValue
in interface Property
RepositoryException
public void setValue(Node value) throws RepositoryException
setValue
in interface Property
RepositoryException
public void setValue(String value) throws RepositoryException
setValue
in interface Property
RepositoryException
public void setValue(String[] strings) throws RepositoryException
setValue
in interface Property
RepositoryException
public void setValue(Value value) throws RepositoryException
setValue
in interface Property
RepositoryException
public void setValue(Value[] values) throws RepositoryException
setValue
in interface Property
RepositoryException
public Node getNode() throws RepositoryException
getNode
in interface Property
RepositoryException
public long getLength() throws RepositoryException
getLength
in interface Property
RepositoryException
public long[] getLengths() throws RepositoryException
getLengths
in interface Property
RepositoryException
public PropertyDefinition getDefinition() throws RepositoryException
getDefinition
in interface Property
RepositoryException
public int getType() throws RepositoryException
getType
in interface Property
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |