Class PropInfo
java.lang.Object
org.apache.jackrabbit.oak.spi.xml.PropInfo
Information about a property being imported. This class is used
by the XML import handlers to pass the parsed property information
to the 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
Node
instance through a session or directly to a
Tree
instance on the oak level.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Hint indicating whether the property is multi- or single-value -
Constructor Summary
ConstructorsConstructorDescriptionCreates a property information instance.PropInfo
(@Nullable String name, int type, @NotNull List<? extends TextValue> values, @NotNull PropInfo.MultipleStatus multipleStatus) Creates a property information instance.Creates a property information instance. -
Method Summary
Modifier and TypeMethodDescriptionasPropertyState
(@NotNull PropertyDefinition propertyDefinition) void
dispose()
Disposes all values contained in this property.@Nullable String
getName()
int
@NotNull TextValue
int
getType()
@NotNull Value
getValue
(int targetType) getValues
(int targetType) boolean
-
Constructor Details
-
PropInfo
Creates a property information instance.- Parameters:
name
- name of the property being importedtype
- type of the property being importedvalue
- value of the property being imported
-
PropInfo
public PropInfo(@Nullable @Nullable String name, int type, @NotNull @NotNull List<? extends 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(@Nullable @Nullable String name, int type, @NotNull @NotNull List<? extends TextValue> values, @NotNull @NotNull 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
-
-
Method Details
-
dispose
public void dispose()Disposes all values contained in this property. -
getTargetType
-
getName
-
getType
public int getType() -
isUnknownMultiple
public boolean isUnknownMultiple() -
getTextValue
- Throws:
RepositoryException
-
getTextValues
-
getValue
- Throws:
RepositoryException
-
getValues
- Throws:
RepositoryException
-
asPropertyState
public PropertyState asPropertyState(@NotNull @NotNull PropertyDefinition propertyDefinition) throws RepositoryException - Throws:
RepositoryException
-