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 SummaryFields 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 SummaryConstructors 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 SummaryAll 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_URLpublic static final java.lang.String WP_URL - See Also:
- Constant Field Values
 
 - 
WP_APPNAMEpublic static final java.lang.String WP_APPNAME - See Also:
- Constant Field Values
 
 - 
WP_TARGETpublic static final java.lang.String WP_TARGET - See Also:
- Constant Field Values
 
 - 
WP_USERpublic static final java.lang.String WP_USER - See Also:
- Constant Field Values
 
 - 
WP_PASSpublic static final java.lang.String WP_PASS - See Also:
- Constant Field Values
 
 - 
pidprotected java.lang.String pid The publish id.
 - 
publishtypeprotected java.lang.String publishtype The publish type.
 - 
publishscopeprotected ServiceScope publishscope The publish scope.
 - 
multiprotected boolean multi Flag for allowing publishing to multiple locations.
 - 
mappingprotected ClassInfo mapping The mapping information (e.g. annotated interface).
 - 
propertiesprotected java.util.List<UnparsedExpression> properties The mapping properties.
 
- 
 - 
Constructor Detail- 
PublishInfopublic PublishInfo() Create a new publish info.
 - 
PublishInfopublic 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.
 
 - 
PublishInfopublic 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.
 
 - 
PublishInfopublic 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.
 
 - 
PublishInfopublic PublishInfo(PublishInfo info) Create a new publish info.
 
- 
 - 
Method Detail- 
getPublishIdpublic java.lang.String getPublishId() Get the publishid.- Returns:
- the publishid.
 
 - 
setPublishIdpublic void setPublishId(java.lang.String pid) Set the publishid.- Parameters:
- publishid- The publishid to set.
 
 - 
getPublishTypepublic java.lang.String getPublishType() Get the type.- Returns:
- the type.
 
 - 
setPublishTypepublic void setPublishType(java.lang.String type) Set the type.- Parameters:
- type- The type to set.
 
 - 
getPublishScopepublic ServiceScope getPublishScope() Gets the publish scope.- Returns:
- The publish scope.
 
 - 
setPublishScopepublic void setPublishScope(ServiceScope publishscope) Set the publish scope.- Parameters:
- publishscope- The publish scope.
 
 - 
getMappingpublic ClassInfo getMapping() Get the mapping information (e.g. annotated interface).- Returns:
- The mapping.
 
 - 
setMultipublic void setMulti(boolean multi) Sets if the publishing should be done on multiple publishing services.- Parameters:
- multi- Set true, if multi-publish.
 
 - 
isMultipublic boolean isMulti() Gets if the publishing should be done on multiple publishing services.- Returns:
- True, if multi-publish.
 
 - 
setMappingpublic void setMapping(ClassInfo mapping) Set the mapping information (e.g. annotated interface).- Parameters:
- mapping- The mapping to set.
 
 - 
getPropertiespublic java.util.List<UnparsedExpression> getProperties() Get the properties.- Returns:
- the properties.
 
 - 
setPropertiespublic void setProperties(java.util.List<UnparsedExpression> properties) Set the properties.- Parameters:
- properties- The properties to set.
 
 - 
addPropertypublic void addProperty(UnparsedExpression property) Add a property.- Parameters:
- property- The property to add.
 
 - 
addPropertypublic void addProperty(java.lang.String name, java.lang.String val)Add a property.- Parameters:
- property- The property to add.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-