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 PropertyDefinition propertyDefinition) |
void |
dispose()
Disposes all values contained in this property.
|
@Nullable java.lang.String |
getName() |
int |
getTargetType(PropertyDefinition def) |
@NotNull TextValue |
getTextValue() |
@NotNull java.util.List<? extends TextValue> |
getTextValues() |
int |
getType() |
@NotNull Value |
getValue(int targetType) |
@NotNull java.util.List<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(PropertyDefinition def)
@Nullable public @Nullable java.lang.String getName()
public int getType()
public boolean isUnknownMultiple()
@NotNull public @NotNull TextValue getTextValue() throws RepositoryException
RepositoryException
@NotNull public @NotNull java.util.List<? extends TextValue> getTextValues()
@NotNull public @NotNull Value getValue(int targetType) throws RepositoryException
RepositoryException
@NotNull public @NotNull java.util.List<Value> getValues(int targetType) throws RepositoryException
RepositoryException
public PropertyState asPropertyState(@NotNull @NotNull PropertyDefinition propertyDefinition) throws RepositoryException
RepositoryException
Copyright © 2010 - 2020 Adobe. All Rights Reserved