Local adapter for the JCR-RMI
RemoteProperty
interface. This class makes a remote property locally available using
the JCR Property
interface.
@Deprecated public class ClientProperty extends ClientItem implements Property
Property
,
RemoteProperty
JCR_ACTIVITY, JCR_AUTOCREATED, JCR_BASE_VERSION, JCR_CHILD_VERSION_HISTORY, JCR_CONFIGURATION, JCR_CONTENT, JCR_COPIED_FROM, JCR_CREATED, JCR_CREATED_BY, JCR_CURRENT_LIFECYCLE_STATE, JCR_DATA, JCR_DEFAULT_PRIMARY_TYPE, JCR_DEFAULT_VALUES, JCR_DESCRIPTION, JCR_ENCODING, JCR_FROZEN_MIXIN_TYPES, JCR_FROZEN_PRIMARY_TYPE, JCR_FROZEN_UUID, JCR_HAS_ORDERABLE_CHILD_NODES, JCR_HOST, JCR_ID, JCR_IS_ABSTRACT, JCR_IS_CHECKED_OUT, JCR_IS_MIXIN, JCR_LANGUAGE, JCR_LAST_MODIFIED, JCR_LAST_MODIFIED_BY, JCR_LIFECYCLE_POLICY, JCR_LOCK_IS_DEEP, JCR_LOCK_OWNER, JCR_MANDATORY, JCR_MERGE_FAILED, JCR_MIMETYPE, JCR_MIXIN_TYPES, JCR_MULTIPLE, JCR_NAME, JCR_NODE_TYPE_NAME, JCR_ON_PARENT_VERSION, JCR_PATH, JCR_PORT, JCR_PREDECESSORS, JCR_PRIMARY_ITEM_NAME, JCR_PRIMARY_TYPE, JCR_PROTECTED, JCR_PROTOCOL, JCR_REPOSITORY, JCR_REQUIRED_PRIMARY_TYPES, JCR_REQUIRED_TYPE, JCR_ROOT, JCR_SAME_NAME_SIBLINGS, JCR_STATEMENT, JCR_SUCCESSORS, JCR_SUPERTYPES, JCR_TITLE, JCR_UUID, JCR_VALUE_CONSTRAINTS, JCR_VERSION_HISTORY, JCR_VERSIONABLE_UUID, JCR_WORKSPACE
Constructor and Description |
---|
ClientProperty(Session session,
RemoteProperty remote,
LocalAdapterFactory factory)
Deprecated.
Creates a local adapter for the given remote property.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ItemVisitor visitor)
Deprecated.
Calls the
ItemVisitor.visit(Property
method of the given visitor. |
Binary |
getBinary()
Deprecated.
Returns the binary value of this property.
|
boolean |
getBoolean()
Deprecated.
Returns the boolean value of this property.
|
Calendar |
getDate()
Deprecated.
Returns the date value of this property.
|
BigDecimal |
getDecimal()
Deprecated.
Returns the decimal value of this property.
|
PropertyDefinition |
getDefinition()
Deprecated.
|
double |
getDouble()
Deprecated.
Returns the double value of this property.
|
long |
getLength()
Deprecated.
|
long[] |
getLengths()
Deprecated.
|
long |
getLong()
Deprecated.
Returns the long value of this property.
|
Node |
getNode()
Deprecated.
Returns the reference value of this property.
|
Property |
getProperty()
Deprecated.
|
InputStream |
getStream()
Deprecated.
Returns the binary value of this property.
|
String |
getString()
Deprecated.
Returns the string value of this property.
|
int |
getType()
Deprecated.
|
Value |
getValue()
Deprecated.
|
Value[] |
getValues()
Deprecated.
|
boolean |
isMultiple()
Deprecated.
|
void |
setValue(BigDecimal value)
Deprecated.
Sets the decimal value of this property.
|
void |
setValue(Binary value)
Deprecated.
Sets the binary value of this property.
|
void |
setValue(boolean value)
Deprecated.
Sets the boolean value of this property.
|
void |
setValue(Calendar value)
Deprecated.
Sets the date value of this property.
|
void |
setValue(double value)
Deprecated.
Sets the double value of this property.
|
void |
setValue(InputStream value)
Deprecated.
Sets the binary value of this property.
|
void |
setValue(long value)
Deprecated.
Sets the long value of this property.
|
void |
setValue(Node value)
Deprecated.
Sets the reference value of this property.
|
void |
setValue(String value)
Deprecated.
Sets the string value of this property.
|
void |
setValue(String[] strings)
Deprecated.
|
void |
setValue(Value value)
Deprecated.
|
void |
setValue(Value[] values)
Deprecated.
|
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save
getFactory, getItem, getNode, getNodeTypeArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save
public 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 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 Binary getBinary() throws RepositoryException
getBinary
in interface Property
RepositoryException
public BigDecimal getDecimal() throws RepositoryException
getDecimal
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(Binary value) throws RepositoryException
setValue
in interface Property
RepositoryException
public void setValue(BigDecimal 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 Property getProperty() throws RepositoryException
getProperty
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
public boolean isMultiple() throws RepositoryException
isMultiple
in interface Property
RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.