|
||||||||||
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 ConnectorDescriptor
ConnectorException
public java.lang.String getGroupId()
getGroupId
in interface ConnectorDescriptor
public void setGroupId(java.lang.String groupId)
setGroupId
in interface ConnectorDescriptor
public java.lang.String getArtifactId()
getArtifactId
in interface ConnectorDescriptor
public void setArtifactId(java.lang.String artifactId)
setArtifactId
in interface ConnectorDescriptor
public java.lang.String getVersion()
getVersion
in interface ConnectorDescriptor
public void setVersion(java.lang.String version)
setVersion
in interface ConnectorDescriptor
public java.lang.String getDescription()
getDescription
in interface ConnectorDescriptor
public void setDescription(java.lang.String description)
setDescription
in interface ConnectorDescriptor
public java.util.EnumSet<ConnectorInterfaceEnum> getProvidedInterfaces()
getProvidedInterfaces
in interface ConnectorDescriptor
public void setProvidedInterfaces(java.util.EnumSet<ConnectorInterfaceEnum> providedInterfaces)
setProvidedInterfaces
in interface ConnectorDescriptor
public ConnectorInterfaceEnum getPreferredInterface()
ConnectorDescriptor
getPreferredInterface
in interface ConnectorDescriptor
public void setPreferredInterface(ConnectorInterfaceEnum preferredInterface)
ConnectorDescriptor
setPreferredInterface
in interface ConnectorDescriptor
public java.lang.String getName()
getName
in interface ConnectorDescriptor
public void setName(java.lang.String name)
setName
in interface ConnectorDescriptor
public java.lang.Class<? extends ConnectorConfiguration> getConfigurationClass()
ConnectorDescriptor
getConfigurationClass
in interface ConnectorDescriptor
ConnectorConfiguration
public void setConfigurationClass(java.lang.Class<? extends ConnectorConfiguration> configurationClass)
ConnectorDescriptor
setConfigurationClass
in interface ConnectorDescriptor
configurationClass
- to set.public java.util.List<Mapping> getMappings()
ConnectorDescriptor
ConnectorConfiguration
getMappings
in interface ConnectorDescriptor
public void setMappings(java.util.List<Mapping> mappings)
ConnectorDescriptor
ConnectorConfiguration
setMappings
in interface ConnectorDescriptor
mappings
- to be setpublic 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 |