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
javax.jcr.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(java.lang.String name,
int type,
java.util.List<? extends TextValue> values)
Creates a property information instance.
|
PropInfo(java.lang.String name,
int type,
java.util.List<? extends TextValue> values,
PropInfo.MultipleStatus multipleStatus)
Creates a property information instance.
|
PropInfo(java.lang.String name,
int type,
TextValue value)
Creates a property information instance.
|
Modifier and Type | Method and Description |
---|---|
PropertyState |
asPropertyState(PropertyDefinition propertyDefinition) |
void |
dispose()
Disposes all values contained in this property.
|
java.lang.String |
getName() |
int |
getTargetType(PropertyDefinition def) |
TextValue |
getTextValue() |
java.util.List<? extends TextValue> |
getTextValues() |
int |
getType() |
Value |
getValue(int targetType) |
java.util.List<Value> |
getValues(int targetType) |
boolean |
isUnknownMultiple() |
public PropInfo(java.lang.String name, int type, TextValue value)
name
- name of the property being importedtype
- type of the property being importedvalue
- value of the property being importedpublic PropInfo(java.lang.String name, int type, 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(java.lang.String name, int type, java.util.List<? extends 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 ispublic void dispose()
public int getTargetType(PropertyDefinition def)
public java.lang.String getName()
public int getType()
public boolean isUnknownMultiple()
public TextValue getTextValue() throws RepositoryException
RepositoryException
public java.util.List<? extends TextValue> getTextValues()
public Value getValue(int targetType) throws RepositoryException
RepositoryException
public java.util.List<Value> getValues(int targetType) throws RepositoryException
RepositoryException
public PropertyState asPropertyState(PropertyDefinition propertyDefinition) throws RepositoryException
RepositoryException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"