public class PublishInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ClassInfo |
mapping
The mapping information (e.g.
|
protected java.lang.String |
pid
The publish id.
|
protected java.util.List<UnparsedExpression> |
properties
The mapping properties.
|
protected java.lang.String |
publishtype
The publish type.
|
static java.lang.String |
WP_APPNAME |
static java.lang.String |
WP_PASS |
static java.lang.String |
WP_TARGET |
static java.lang.String |
WP_URL |
static java.lang.String |
WP_USER |
Constructor and Description |
---|
PublishInfo()
Create a new publish info.
|
PublishInfo(PublishInfo info)
Create a new publish info.
|
PublishInfo(java.lang.String pid,
java.lang.String publishtype,
java.lang.Class<?> mapping)
Create a new publish info.
|
PublishInfo(java.lang.String pid,
java.lang.String publishtype,
java.lang.Class<?> mapping,
java.lang.Object[] props)
Create a new publish info.
|
PublishInfo(java.lang.String pid,
java.lang.String publishtype,
java.lang.Class<?> mapping,
UnparsedExpression[] properties)
Create a new publish info.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String name,
java.lang.String val)
Add a property.
|
void |
addProperty(UnparsedExpression property)
Add a property.
|
ClassInfo |
getMapping()
Get the mapping information (e.g.
|
java.util.List<UnparsedExpression> |
getProperties()
Get the properties.
|
java.lang.String |
getPublishId()
Get the publishid.
|
java.lang.String |
getPublishType()
Get the type.
|
void |
setMapping(ClassInfo mapping)
Set the mapping information (e.g.
|
void |
setProperties(java.util.List<UnparsedExpression> properties)
Set the properties.
|
void |
setPublishId(java.lang.String pid)
Set the publishid.
|
void |
setPublishType(java.lang.String type)
Set the type.
|
public static final java.lang.String WP_URL
public static final java.lang.String WP_APPNAME
public static final java.lang.String WP_TARGET
public static final java.lang.String WP_USER
public static final java.lang.String WP_PASS
protected java.lang.String pid
protected java.lang.String publishtype
protected ClassInfo mapping
protected java.util.List<UnparsedExpression> properties
public PublishInfo()
public PublishInfo(java.lang.String pid, java.lang.String publishtype, java.lang.Class<?> mapping)
pid
- The publish id, e.g. url.publishtype
- The publish type.public PublishInfo(java.lang.String pid, java.lang.String publishtype, java.lang.Class<?> mapping, UnparsedExpression[] properties)
pid
- The publish id, e.g. url.publishtype
- The publish type.public PublishInfo(java.lang.String pid, java.lang.String publishtype, java.lang.Class<?> mapping, java.lang.Object[] props)
pid
- The publish id, e.g. url.publishtype
- The publish type.public PublishInfo(PublishInfo info)
public java.lang.String getPublishId()
public void setPublishId(java.lang.String pid)
publishid
- The publishid to set.public java.lang.String getPublishType()
public void setPublishType(java.lang.String type)
type
- The type to set.public ClassInfo getMapping()
public void setMapping(ClassInfo mapping)
mapping
- The mapping to set.public java.util.List<UnparsedExpression> getProperties()
public void setProperties(java.util.List<UnparsedExpression> properties)
properties
- The properties to set.public void addProperty(UnparsedExpression property)
property
- The property to add.public void addProperty(java.lang.String name, java.lang.String val)
property
- The property to add.