public class PropInfo extends Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
PropInfo.MultipleStatus
Hint indicating whether the property is multi- or single-value
|
Constructor and Description |
---|
PropInfo(Name name,
int type,
TextValue[] values)
Creates a property information instance.
|
PropInfo(Name name,
int type,
TextValue[] values,
PropInfo.MultipleStatus multipleStatus)
Creates a property information instance.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes all values contained in this property.
|
QPropertyDefinition |
getApplicablePropertyDef(EffectiveNodeType ent) |
Name |
getName() |
int |
getTargetType(QPropertyDefinition def) |
TextValue[] |
getTextValues() |
int |
getType() |
javax.jcr.Value[] |
getValues(int targetType,
NamePathResolver resolver) |
public PropInfo(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 importedpublic PropInfo(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-valuepublic void dispose()
public int getTargetType(QPropertyDefinition def)
public QPropertyDefinition getApplicablePropertyDef(EffectiveNodeType ent) throws javax.jcr.nodetype.ConstraintViolationException
javax.jcr.nodetype.ConstraintViolationException
public Name getName()
public int getType()
public TextValue[] getTextValues()
public javax.jcr.Value[] getValues(int targetType, NamePathResolver resolver) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.