org.apache.jackrabbit.core.persistence.util
Class NodePropBundle.PropertyEntry

java.lang.Object
  extended by 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
NodePropBundle.PropertyEntry(PropertyId id)
          Creates a new property entry with the given id.
NodePropBundle.PropertyEntry(PropertyState state)
          Creates a new property entry and initialized it with values from the given property state.
 
Method Summary
 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 name
 int getType()
          Returns the type.
 InternalValue[] getValues()
          Retruns the internal values
 boolean isMultiValued()
          Returns the multivalued flag.
 void setBlobId(String blobId, int n)
          Sets the nth blobid
 void setBlobIds(String[] blobIds)
          Sets the blob ids
 void setModCount(short modCount)
          Sets the mod count
 void setMultiValued(boolean multiValued)
          Sets the multivalued flag.
 void setType(int type)
          Sets the type
 void setValues(InternalValue[] values)
          Sets the internal values.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodePropBundle.PropertyEntry

public NodePropBundle.PropertyEntry(PropertyId id)
Creates a new property entry with the given id.

Parameters:
id - the id

NodePropBundle.PropertyEntry

public NodePropBundle.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 id
n - 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

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.