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