public class PropInfo extends 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(String name,
int type,
List<? extends TextValue> values)
Creates a property information instance.
|
PropInfo(String name,
int type,
List<? extends TextValue> values,
PropInfo.MultipleStatus multipleStatus)
Creates a property information instance.
|
PropInfo(String name,
int type,
TextValue value)
Creates a property information instance.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes all values contained in this property.
|
String |
getName() |
PropertyDefinition |
getPropertyDef(EffectiveNodeType ent) |
int |
getTargetType(PropertyDefinition def) |
TextValue |
getTextValue() |
List<? extends TextValue> |
getTextValues() |
int |
getType() |
Value |
getValue(int targetType) |
List<Value> |
getValues(int targetType) |
public PropInfo(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(String name, int type, 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(String name, int type, 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 String getName()
public int getType()
public TextValue getTextValue() throws RepositoryException
RepositoryException
public Value getValue(int targetType) throws RepositoryException
RepositoryException
public List<Value> getValues(int targetType) throws RepositoryException
RepositoryException
public PropertyDefinition getPropertyDef(EffectiveNodeType ent)
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"