org.apache.jackrabbit.spi.commons
Class PropertyInfoImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.ItemInfoImpl
      extended by org.apache.jackrabbit.spi.commons.PropertyInfoImpl
All Implemented Interfaces:
Serializable, org.apache.jackrabbit.spi.ItemInfo, org.apache.jackrabbit.spi.PropertyInfo

public class PropertyInfoImpl
extends ItemInfoImpl
implements org.apache.jackrabbit.spi.PropertyInfo

PropertyInfoImpl implements a serializable PropertyInfo based on another property info.

See Also:
Serialized Form

Constructor Summary
PropertyInfoImpl(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name name, org.apache.jackrabbit.spi.Path path, org.apache.jackrabbit.spi.PropertyId id, int type, boolean isMultiValued, org.apache.jackrabbit.spi.QValue[] values)
          Deprecated. Use PropertyInfoImpl(Path, PropertyId, int, boolean, QValue[]) instead. The parentId is not used any more.
PropertyInfoImpl(org.apache.jackrabbit.spi.Path path, org.apache.jackrabbit.spi.PropertyId id, int type, boolean isMultiValued, org.apache.jackrabbit.spi.QValue[] values)
          Creates a new property info for the given parameters.
 
Method Summary
static org.apache.jackrabbit.spi.PropertyInfo createSerializablePropertyInfo(org.apache.jackrabbit.spi.PropertyInfo propertyInfo, org.apache.jackrabbit.spi.IdFactory idFactory)
          Creates a new serializable property info for the given PropertyInfo.
 org.apache.jackrabbit.spi.PropertyId getId()
          
 int getType()
          
 org.apache.jackrabbit.spi.QValue[] getValues()
          
 boolean isMultiValued()
          
 
Methods inherited from class org.apache.jackrabbit.spi.commons.ItemInfoImpl
denotesNode, getPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jackrabbit.spi.ItemInfo
denotesNode, getPath
 

Constructor Detail

PropertyInfoImpl

public PropertyInfoImpl(org.apache.jackrabbit.spi.NodeId parentId,
                        org.apache.jackrabbit.spi.Name name,
                        org.apache.jackrabbit.spi.Path path,
                        org.apache.jackrabbit.spi.PropertyId id,
                        int type,
                        boolean isMultiValued,
                        org.apache.jackrabbit.spi.QValue[] values)
Deprecated. Use PropertyInfoImpl(Path, PropertyId, int, boolean, QValue[]) instead. The parentId is not used any more.

Creates a new property info for the given parameters.

Parameters:
parentId - the parent id.
name - the name of this property.
path - the path to this property.
id - the id of this property.
type - the type of this property.
isMultiValued - whether this property is multi-valued.
values - the values.

PropertyInfoImpl

public PropertyInfoImpl(org.apache.jackrabbit.spi.Path path,
                        org.apache.jackrabbit.spi.PropertyId id,
                        int type,
                        boolean isMultiValued,
                        org.apache.jackrabbit.spi.QValue[] values)
Creates a new property info for the given parameters.

Parameters:
path - the path to this property.
id - the id of this property.
type - the type of this property.
isMultiValued - whether this property is multi-valued.
values - the values.
Method Detail

createSerializablePropertyInfo

public static org.apache.jackrabbit.spi.PropertyInfo createSerializablePropertyInfo(org.apache.jackrabbit.spi.PropertyInfo propertyInfo,
                                                                                    org.apache.jackrabbit.spi.IdFactory idFactory)
Creates a new serializable property info for the given PropertyInfo.

Parameters:
propertyInfo -

getId

public org.apache.jackrabbit.spi.PropertyId getId()

Specified by:
getId in interface org.apache.jackrabbit.spi.ItemInfo
Specified by:
getId in interface org.apache.jackrabbit.spi.PropertyInfo

getType

public int getType()

Specified by:
getType in interface org.apache.jackrabbit.spi.PropertyInfo

isMultiValued

public boolean isMultiValued()

Specified by:
isMultiValued in interface org.apache.jackrabbit.spi.PropertyInfo

getValues

public org.apache.jackrabbit.spi.QValue[] getValues()

Specified by:
getValues in interface org.apache.jackrabbit.spi.PropertyInfo


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