Class NodePropBundle.PropertyEntry
- java.lang.Object
-
- org.apache.jackrabbit.core.persistence.util.NodePropBundle.PropertyEntry
-
- Enclosing class:
- NodePropBundle
public static class NodePropBundle.PropertyEntry extends Object
Helper class for a property enrty
-
-
Constructor Summary
Constructors Constructor Description PropertyEntry(PropertyId id)
Creates a new property entry with the given id.PropertyEntry(PropertyState state)
Creates a new property entry and initialized it with values from the given property state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
String
getBlobId(int n)
Returns the nth blob id.PropertyId
getId()
Returns the property id.short
getModCount()
Returns the mod count.Name
getName()
Returns the property nameint
getType()
Returns the type.InternalValue[]
getValues()
Retruns the internal valuesboolean
isMultiValued()
Returns the multivalued flag.void
setBlobId(String blobId, int n)
Sets the nth blobidvoid
setBlobIds(String[] blobIds)
Sets the blob idsvoid
setModCount(short modCount)
Sets the mod countvoid
setMultiValued(boolean multiValued)
Sets the multivalued flag.void
setType(int type)
Sets the typevoid
setValues(InternalValue[] values)
Sets the internal values.String
toString()
-
-
-
Constructor Detail
-
PropertyEntry
public PropertyEntry(PropertyId id)
Creates a new property entry with the given id.- Parameters:
id
- the id
-
PropertyEntry
public PropertyEntry(PropertyState state)
Creates a new property entry and initialized it with values from the given property state.- Parameters:
state
- the source property state.
-
-
Method Detail
-
getId
public PropertyId getId()
Returns the property id.- Returns:
- the property id.
-
getName
public Name getName()
Returns the property name- Returns:
- the property name
-
getValues
public InternalValue[] getValues()
Retruns the internal values- Returns:
- the internal values
-
setValues
public void setValues(InternalValue[] values)
Sets the internal values.- Parameters:
values
- the internal values.
-
getType
public int getType()
Returns the type.- Returns:
- the type.
-
setType
public void setType(int type)
Sets the type- Parameters:
type
- the type
-
isMultiValued
public boolean isMultiValued()
Returns the multivalued flag.- Returns:
- the multivalued flag.
-
setMultiValued
public void setMultiValued(boolean multiValued)
Sets the multivalued flag.- Parameters:
multiValued
- the multivalued flag
-
getBlobId
public String getBlobId(int n)
Returns the nth blob id.- Parameters:
n
- the index of the blob id- Returns:
- the blob id
-
setBlobIds
public void setBlobIds(String[] blobIds)
Sets the blob ids- Parameters:
blobIds
- the blobids
-
setBlobId
public void setBlobId(String blobId, int n)
Sets the nth blobid- Parameters:
blobId
- the blob idn
- the index of the blob id
-
getModCount
public short getModCount()
Returns the mod count.- Returns:
- the mod count.
-
setModCount
public void setModCount(short modCount)
Sets the mod count- Parameters:
modCount
- the mod count
-
-