Package org.apache.jackrabbit.core.xml
Class PropInfo
- java.lang.Object
-
- org.apache.jackrabbit.core.xml.PropInfo
-
public class PropInfo extends Object
Information about a property being imported. This class is used by the XML import handlers to pass the parsed property information through theImporterinterface to the actual import process.In addition to carrying the actual property data, instances of this class also know how to apply that data when imported either to a
NodeImplinstance through a session or directly to aNodeStateinstance in a workspace.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropInfo.MultipleStatusHint indicating whether the property is multi- or single-value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes all values contained in this property.QPropertyDefinitiongetApplicablePropertyDef(EffectiveNodeType ent)NamegetName()intgetTargetType(QPropertyDefinition def)TextValue[]getTextValues()intgetType()Value[]getValues(int targetType, NamePathResolver resolver)
-
-
-
Constructor Detail
-
PropInfo
public PropInfo(Name name, int type, TextValue[] values)
Creates a property information instance.- Parameters:
name- name of the property being importedtype- type of the property being importedvalues- value(s) of the property being imported
-
PropInfo
public PropInfo(Name name, int type, TextValue[] values, PropInfo.MultipleStatus multipleStatus)
Creates a property information instance.- Parameters:
name- name of the property being importedtype- type of the property being importedvalues- value(s) of the property being importedmultipleStatus- Hint indicating whether the property is multi- or single-value
-
-
Method Detail
-
dispose
public void dispose()
Disposes all values contained in this property.
-
getTargetType
public int getTargetType(QPropertyDefinition def)
-
getApplicablePropertyDef
public QPropertyDefinition getApplicablePropertyDef(EffectiveNodeType ent) throws ConstraintViolationException
- Throws:
ConstraintViolationException
-
getName
public Name getName()
-
getType
public int getType()
-
getTextValues
public TextValue[] getTextValues()
-
getValues
public Value[] getValues(int targetType, NamePathResolver resolver) throws RepositoryException
- Throws:
RepositoryException
-
-