|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.xml.PropInfo
public class PropInfo
Information about a property being imported. This class is used
by the XML import handlers to pass the parsed property information
through the Importer interface 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
NodeImpl instance through a session or directly to a
NodeState instance in a workspace.
| Nested Class Summary | |
|---|---|
static class |
PropInfo.MultipleStatus
Hint indicating whether the property is multi- or single-value |
| Constructor Summary | |
|---|---|
PropInfo(org.apache.jackrabbit.spi.Name name,
int type,
TextValue[] values)
Creates a property information instance. |
|
PropInfo(org.apache.jackrabbit.spi.Name name,
int type,
TextValue[] values,
PropInfo.MultipleStatus multipleStatus)
Creates a property information instance. |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes all values contained in this property. |
org.apache.jackrabbit.spi.QPropertyDefinition |
getApplicablePropertyDef(EffectiveNodeType ent)
|
org.apache.jackrabbit.spi.Name |
getName()
|
int |
getTargetType(org.apache.jackrabbit.spi.QPropertyDefinition def)
|
TextValue[] |
getTextValues()
|
int |
getType()
|
Value[] |
getValues(int targetType,
org.apache.jackrabbit.spi.commons.conversion.NamePathResolver resolver)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropInfo(org.apache.jackrabbit.spi.Name name,
int type,
TextValue[] values)
name - name of the property being importedtype - type of the property being importedvalues - value(s) of the property being imported
public PropInfo(org.apache.jackrabbit.spi.Name name,
int type,
TextValue[] values,
PropInfo.MultipleStatus multipleStatus)
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 |
|---|
public void dispose()
public int getTargetType(org.apache.jackrabbit.spi.QPropertyDefinition def)
public org.apache.jackrabbit.spi.QPropertyDefinition getApplicablePropertyDef(EffectiveNodeType ent)
throws ConstraintViolationException
ConstraintViolationExceptionpublic org.apache.jackrabbit.spi.Name getName()
public int getType()
public TextValue[] getTextValues()
public Value[] getValues(int targetType,
org.apache.jackrabbit.spi.commons.conversion.NamePathResolver resolver)
throws RepositoryException
RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||