|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.diagrams.connector_api.descriptor.DefaultConnectorDescriptor
public class DefaultConnectorDescriptor
ConnectorDescriptor is the same for Connector as PluginDescriptor for MavenPlugin.
It contains basic information about connector and the xstream mappings for the connector's configuration file.
In most cases the class is serialized and deserialized form XML by ConnectorDescriptorBuilder
| Constructor Summary | |
|---|---|
DefaultConnectorDescriptor()
|
|
| Method Summary | |
|---|---|
DiagramConnector |
createConnectorInstance()
|
java.lang.String |
getArtifactId()
|
java.lang.Class<? extends ConnectorConfiguration> |
getConfigurationClass()
The method returns the ConnectorConfiguration class that the connector use. |
java.lang.String |
getDescription()
|
java.lang.String |
getGroupId()
|
java.util.List<Mapping> |
getMappings()
It return set of mappings "tag name to class" used by xstream library to serialize and deserialize ConnectorConfiguration |
java.lang.String |
getName()
|
ConnectorInterfaceEnum |
getPreferredInterface()
Return which type of interface to the described connector (static or dynamic) should be preferred by libraries using the connector. |
java.util.EnumSet<ConnectorInterfaceEnum> |
getProvidedInterfaces()
|
java.lang.String |
getVersion()
|
void |
setArtifactId(java.lang.String artifactId)
|
void |
setConfigurationClass(java.lang.Class<? extends ConnectorConfiguration> configurationClass)
The method sets the ConnectorConfiguration class that the connector use. |
void |
setConfigurationClassName(java.lang.String s)
|
void |
setDescription(java.lang.String description)
|
void |
setGroupId(java.lang.String groupId)
|
void |
setMappings(java.util.List<Mapping> mappings)
It sets mappings "tag name to class" used by xstream library to serialize and deserialize ConnectorConfiguration |
void |
setName(java.lang.String name)
|
void |
setPreferredInterface(ConnectorInterfaceEnum preferredInterface)
Sets the preferred interface. |
void |
setProvidedInterfaces(java.util.EnumSet<ConnectorInterfaceEnum> providedInterfaces)
|
void |
setVersion(java.lang.String version)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultConnectorDescriptor()
| Method Detail |
|---|
public DiagramConnector createConnectorInstance()
throws ConnectorException
createConnectorInstance in interface ConnectorDescriptorConnectorExceptionpublic java.lang.String getGroupId()
getGroupId in interface ConnectorDescriptorpublic void setGroupId(java.lang.String groupId)
setGroupId in interface ConnectorDescriptorpublic java.lang.String getArtifactId()
getArtifactId in interface ConnectorDescriptorpublic void setArtifactId(java.lang.String artifactId)
setArtifactId in interface ConnectorDescriptorpublic java.lang.String getVersion()
getVersion in interface ConnectorDescriptorpublic void setVersion(java.lang.String version)
setVersion in interface ConnectorDescriptorpublic java.lang.String getDescription()
getDescription in interface ConnectorDescriptorpublic void setDescription(java.lang.String description)
setDescription in interface ConnectorDescriptorpublic java.util.EnumSet<ConnectorInterfaceEnum> getProvidedInterfaces()
getProvidedInterfaces in interface ConnectorDescriptorpublic void setProvidedInterfaces(java.util.EnumSet<ConnectorInterfaceEnum> providedInterfaces)
setProvidedInterfaces in interface ConnectorDescriptorpublic ConnectorInterfaceEnum getPreferredInterface()
ConnectorDescriptor
getPreferredInterface in interface ConnectorDescriptorpublic void setPreferredInterface(ConnectorInterfaceEnum preferredInterface)
ConnectorDescriptor
setPreferredInterface in interface ConnectorDescriptorpublic java.lang.String getName()
getName in interface ConnectorDescriptorpublic void setName(java.lang.String name)
setName in interface ConnectorDescriptorpublic java.lang.Class<? extends ConnectorConfiguration> getConfigurationClass()
ConnectorDescriptor
getConfigurationClass in interface ConnectorDescriptorConnectorConfigurationpublic void setConfigurationClass(java.lang.Class<? extends ConnectorConfiguration> configurationClass)
ConnectorDescriptor
setConfigurationClass in interface ConnectorDescriptorconfigurationClass - to set.public java.util.List<Mapping> getMappings()
ConnectorDescriptorConnectorConfiguration
getMappings in interface ConnectorDescriptorpublic void setMappings(java.util.List<Mapping> mappings)
ConnectorDescriptorConnectorConfiguration
setMappings in interface ConnectorDescriptormappings - to be set
public void setConfigurationClassName(java.lang.String s)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||