public class PropInfo
extends java.lang.Object
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
PropInfo.MultipleStatus
Hint indicating whether the property is multi- or single-value
|
| Constructor and Description |
|---|
PropInfo(@Nullable java.lang.String name,
int type,
@NotNull java.util.List<? extends TextValue> values)
Creates a property information instance.
|
PropInfo(@Nullable java.lang.String name,
int type,
@NotNull java.util.List<? extends TextValue> values,
@NotNull PropInfo.MultipleStatus multipleStatus)
Creates a property information instance.
|
PropInfo(@Nullable java.lang.String name,
int type,
@NotNull TextValue value)
Creates a property information instance.
|
| Modifier and Type | Method and Description |
|---|---|
PropertyState |
asPropertyState(@NotNull javax.jcr.nodetype.PropertyDefinition propertyDefinition) |
void |
dispose()
Disposes all values contained in this property.
|
@Nullable java.lang.String |
getName() |
int |
getTargetType(javax.jcr.nodetype.PropertyDefinition def) |
@NotNull TextValue |
getTextValue() |
@NotNull java.util.List<? extends TextValue> |
getTextValues() |
int |
getType() |
@NotNull javax.jcr.Value |
getValue(int targetType) |
@NotNull java.util.List<javax.jcr.Value> |
getValues(int targetType) |
boolean |
isUnknownMultiple() |
public PropInfo(@Nullable
@Nullable java.lang.String name,
int type,
@NotNull
@NotNull TextValue value)
name - name of the property being importedtype - type of the property being importedvalue - value of the property being importedpublic PropInfo(@Nullable
@Nullable java.lang.String name,
int type,
@NotNull
@NotNull java.util.List<? extends TextValue> values)
name - name of the property being importedtype - type of the property being importedvalues - value(s) of the property being importedpublic PropInfo(@Nullable
@Nullable java.lang.String name,
int type,
@NotNull
@NotNull java.util.List<? extends TextValue> values,
@NotNull
@NotNull 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 ispublic void dispose()
public int getTargetType(javax.jcr.nodetype.PropertyDefinition def)
@Nullable public @Nullable java.lang.String getName()
public int getType()
public boolean isUnknownMultiple()
@NotNull public @NotNull TextValue getTextValue() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@NotNull public @NotNull java.util.List<? extends TextValue> getTextValues()
@NotNull
public @NotNull javax.jcr.Value getValue(int targetType)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@NotNull
public @NotNull java.util.List<javax.jcr.Value> getValues(int targetType)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic PropertyState asPropertyState(@NotNull @NotNull javax.jcr.nodetype.PropertyDefinition propertyDefinition) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2010 - 2025 Adobe. All Rights Reserved