|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.property.AbstractDavProperty
org.apache.jackrabbit.webdav.jcr.property.ValuesProperty
public class ValuesProperty
ValuesProperty extends DavProperty providing
utilities to handle the multiple values of the property item represented
by this resource.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ValuesProperty(DavProperty property,
int defaultType,
javax.jcr.ValueFactory valueFactory)
Wrap the specified DavProperty in a new ValuesProperty. |
|
ValuesProperty(javax.jcr.Value value)
Create a new ValuesProperty from the given single Value. |
|
ValuesProperty(javax.jcr.Value[] values)
Create a new ValuesProperty from the given Value
array. |
|
| Method Summary | |
|---|---|
javax.jcr.Value |
getJcrValue()
|
javax.jcr.Value |
getJcrValue(int propertyType,
javax.jcr.ValueFactory valueFactory)
|
javax.jcr.Value[] |
getJcrValues()
Returns the internal property value as jcr Value array |
javax.jcr.Value[] |
getJcrValues(int propertyType,
javax.jcr.ValueFactory valueFactory)
Converts the value of this property to a value array. |
Object |
getValue()
Returns an array of Values representing the value of this
property. |
int |
getValueType()
Returns the type of the values present in this property
or PropertyType.UNDEFINED if no values are available. |
Element |
toXml(Document document)
|
| Methods inherited from class org.apache.jackrabbit.webdav.property.AbstractDavProperty |
|---|
equals, getName, hashCode, isInvisibleInAllprop |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValuesProperty(javax.jcr.Value value)
ValuesProperty from the given single Value.
value - Array of Value objects as obtained from the JCR property.public ValuesProperty(javax.jcr.Value[] values)
ValuesProperty from the given Value
array.
values - Array of Value objects as obtained from the JCR property.
public ValuesProperty(DavProperty property,
int defaultType,
javax.jcr.ValueFactory valueFactory)
throws javax.jcr.RepositoryException,
DavException
DavProperty in a new ValuesProperty.
property - defaultType - default type of the values to be deserialized. If however
the 'value' elements provide a 'type'
attribute, the default value is ignored.valueFactory - Factory used to retrieve JCR values from the value
of the given DavProperty.
javax.jcr.RepositoryException
DavException| Method Detail |
|---|
public javax.jcr.Value[] getJcrValues(int propertyType,
javax.jcr.ValueFactory valueFactory)
throws javax.jcr.ValueFormatException
value array.
javax.jcr.ValueFormatException - if convertion of the internal jcr values to
the specified value type fails.
public javax.jcr.Value[] getJcrValues()
throws javax.jcr.ValueFormatException
Value array
Value array
javax.jcr.ValueFormatException
public javax.jcr.Value getJcrValue(int propertyType,
javax.jcr.ValueFactory valueFactory)
throws javax.jcr.ValueFormatException
propertyType -
javax.jcr.ValueFormatException
public javax.jcr.Value getJcrValue()
throws javax.jcr.ValueFormatException
javax.jcr.ValueFormatExceptionpublic int getValueType()
values present in this property
or PropertyType.UNDEFINED if no values are available.
PropertyType.UNDEFINEDpublic Object getValue()
Values representing the value of this
property.
getValue in interface DavPropertyValuesgetJcrValues(),
getJcrValue()public Element toXml(Document document)
toXml in interface XmlSerializabletoXml in class AbstractDavPropertydocument -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||