Package jadex.bridge.service
Class PublishInfo
- java.lang.Object
-
- jadex.bridge.service.PublishInfo
-
public class PublishInfo extends java.lang.ObjectInfo struct for service publishing details.
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassInfomappingThe mapping information (e.g.protected booleanmultiFlag for allowing publishing to multiple locations.protected java.lang.StringpidThe publish id.protected java.util.List<UnparsedExpression>propertiesThe mapping properties.protected ServiceScopepublishscopeThe publish scope.protected java.lang.StringpublishtypeThe publish type.static java.lang.StringWP_APPNAMEstatic java.lang.StringWP_PASSstatic java.lang.StringWP_TARGETstatic java.lang.StringWP_URLstatic java.lang.StringWP_USER
-
Constructor Summary
Constructors Constructor Description PublishInfo()Create a new publish info.PublishInfo(PublishInfo info)Create a new publish info.PublishInfo(java.lang.String pid, java.lang.String publishtype, ServiceScope publishscope, boolean multi, java.lang.Class<?> mapping, UnparsedExpression[] properties)Create a new publish info.PublishInfo(java.lang.String pid, java.lang.String publishtype, ServiceScope publishscope, boolean multi, 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)Create a new publish info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(UnparsedExpression property)Add a property.voidaddProperty(java.lang.String name, java.lang.String val)Add a property.ClassInfogetMapping()Get the mapping information (e.g.java.util.List<UnparsedExpression>getProperties()Get the properties.java.lang.StringgetPublishId()Get the publishid.ServiceScopegetPublishScope()Gets the publish scope.java.lang.StringgetPublishType()Get the type.booleanisMulti()Gets if the publishing should be done on multiple publishing services.voidsetMapping(ClassInfo mapping)Set the mapping information (e.g.voidsetMulti(boolean multi)Sets if the publishing should be done on multiple publishing services.voidsetProperties(java.util.List<UnparsedExpression> properties)Set the properties.voidsetPublishId(java.lang.String pid)Set the publishid.voidsetPublishScope(ServiceScope publishscope)Set the publish scope.voidsetPublishType(java.lang.String type)Set the type.java.lang.StringtoString()Get the string representation.
-
-
-
Field Detail
-
WP_URL
public static final java.lang.String WP_URL
- See Also:
- Constant Field Values
-
WP_APPNAME
public static final java.lang.String WP_APPNAME
- See Also:
- Constant Field Values
-
WP_TARGET
public static final java.lang.String WP_TARGET
- See Also:
- Constant Field Values
-
WP_USER
public static final java.lang.String WP_USER
- See Also:
- Constant Field Values
-
WP_PASS
public static final java.lang.String WP_PASS
- See Also:
- Constant Field Values
-
pid
protected java.lang.String pid
The publish id.
-
publishtype
protected java.lang.String publishtype
The publish type.
-
publishscope
protected ServiceScope publishscope
The publish scope.
-
multi
protected boolean multi
Flag for allowing publishing to multiple locations.
-
mapping
protected ClassInfo mapping
The mapping information (e.g. annotated interface).
-
properties
protected java.util.List<UnparsedExpression> properties
The mapping properties.
-
-
Constructor Detail
-
PublishInfo
public PublishInfo()
Create a new publish info.
-
PublishInfo
public PublishInfo(java.lang.String pid, java.lang.String publishtype, java.lang.Class<?> mapping)Create a new publish info.- Parameters:
pid- The publish id, e.g. url.publishtype- The publish type.
-
PublishInfo
public PublishInfo(java.lang.String pid, java.lang.String publishtype, ServiceScope publishscope, boolean multi, java.lang.Class<?> mapping, UnparsedExpression[] properties)Create a new publish info.- Parameters:
pid- The publish id, e.g. url.publishtype- The publish type.
-
PublishInfo
public PublishInfo(java.lang.String pid, java.lang.String publishtype, ServiceScope publishscope, boolean multi, java.lang.Class<?> mapping, java.lang.Object[] props)Create a new publish info. Convenience constructor that creates unparsed expressions from a string array containing consecutive name/value pairs.- Parameters:
pid- The publish id, e.g. url.publishtype- The publish type.
-
PublishInfo
public PublishInfo(PublishInfo info)
Create a new publish info.
-
-
Method Detail
-
getPublishId
public java.lang.String getPublishId()
Get the publishid.- Returns:
- the publishid.
-
setPublishId
public void setPublishId(java.lang.String pid)
Set the publishid.- Parameters:
publishid- The publishid to set.
-
getPublishType
public java.lang.String getPublishType()
Get the type.- Returns:
- the type.
-
setPublishType
public void setPublishType(java.lang.String type)
Set the type.- Parameters:
type- The type to set.
-
getPublishScope
public ServiceScope getPublishScope()
Gets the publish scope.- Returns:
- The publish scope.
-
setPublishScope
public void setPublishScope(ServiceScope publishscope)
Set the publish scope.- Parameters:
publishscope- The publish scope.
-
getMapping
public ClassInfo getMapping()
Get the mapping information (e.g. annotated interface).- Returns:
- The mapping.
-
setMulti
public void setMulti(boolean multi)
Sets if the publishing should be done on multiple publishing services.- Parameters:
multi- Set true, if multi-publish.
-
isMulti
public boolean isMulti()
Gets if the publishing should be done on multiple publishing services.- Returns:
- True, if multi-publish.
-
setMapping
public void setMapping(ClassInfo mapping)
Set the mapping information (e.g. annotated interface).- Parameters:
mapping- The mapping to set.
-
getProperties
public java.util.List<UnparsedExpression> getProperties()
Get the properties.- Returns:
- the properties.
-
setProperties
public void setProperties(java.util.List<UnparsedExpression> properties)
Set the properties.- Parameters:
properties- The properties to set.
-
addProperty
public void addProperty(UnparsedExpression property)
Add a property.- Parameters:
property- The property to add.
-
addProperty
public void addProperty(java.lang.String name, java.lang.String val)Add a property.- Parameters:
property- The property to add.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object
-
-