public class AbstractContentImporter.ContentReference extends Object
Modifier and Type | Field and Description |
---|---|
private int |
_type
The reference type.
|
private Object |
_value
The reference value, depends on the reference type.
|
static int |
TYPE_CONTENT_ID
The referenced content exits in the repository and its ID is known.
|
static int |
TYPE_CONTENT_VALUES
The referenced content exits in the repository.
|
static int |
TYPE_LOCAL_ID
The referenced content doesn't exist in the repository, it's in the import file.
|
Constructor and Description |
---|
ContentReference(int type,
Object value)
Build a content reference.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Get the type.
|
Object |
getValue()
Get the value.
|
void |
setType(int type)
Set the type.
|
void |
setValue(Object value)
Set the value.
|
public static final int TYPE_LOCAL_ID
public static final int TYPE_CONTENT_ID
public static final int TYPE_CONTENT_VALUES
private int _type
public ContentReference(int type, Object value)
type
- the reference type.value
- the reference value.