public class JcrPropertyValueModel<T extends Serializable> extends Object implements org.apache.wicket.model.IModel<T>, org.apache.wicket.model.IObjectClassAwareModel<T>
String
, date maps to Date
.
One can also set and retrieve the underlying Value
.
Constructor and Description |
---|
JcrPropertyValueModel(int index,
JcrPropertyModel propertyModel)
Indexed value of a multi-valued property.
|
JcrPropertyValueModel(int index,
javax.jcr.Value value,
JcrPropertyModel propertyModel)
Multi-valued property constructor.
|
JcrPropertyValueModel(JcrPropertyModel propertyModel)
single-valued constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
detach() |
boolean |
equals(Object object) |
int |
getIndex()
The index of a value in a multi-valued property.
|
JcrPropertyModel |
getJcrPropertymodel() |
T |
getObject() |
Class |
getObjectClass() |
int |
getType()
Determines the type of the property.
|
javax.jcr.Value |
getValue() |
int |
hashCode() |
void |
setIndex(int index) |
void |
setObject(Serializable object) |
void |
setType(int type) |
void |
setValue(javax.jcr.Value value) |
String |
toString() |
public static final int NO_INDEX
public static final int NO_TYPE
public JcrPropertyValueModel(JcrPropertyModel propertyModel)
propertyModel
- public JcrPropertyValueModel(int index, JcrPropertyModel propertyModel)
index
- propertyModel
- public JcrPropertyValueModel(int index, javax.jcr.Value value, JcrPropertyModel propertyModel)
index
- value
- propertyModel
- public int getType()
null
the type of property is determined based on the PropertyDefinition
.for the resulting values.
public void setType(int type)
public int getIndex()
public JcrPropertyModel getJcrPropertymodel()
public javax.jcr.Value getValue()
public void setValue(javax.jcr.Value value)
public T getObject()
getObject
in interface org.apache.wicket.model.IModel<T extends Serializable>
public void setObject(Serializable object)
setObject
in interface org.apache.wicket.model.IModel<T extends Serializable>
public void detach()
detach
in interface org.apache.wicket.model.IDetachable
public void setIndex(int index)
public Class getObjectClass()
getObjectClass
in interface org.apache.wicket.model.IObjectClassAwareModel<T extends Serializable>
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.