Package org.apache.maven.api.model
Class MailingList
java.lang.Object
org.apache.maven.api.model.MailingList
- All Implemented Interfaces:
Serializable
,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class MailingList
extends Object
implements Serializable, InputLocationTracker
This element describes all of the mailing lists associated with a project. The
auto-generated site references this information.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create MailingList instances. -
Constructor Summary
ModifierConstructorDescriptionprotected
MailingList
(MailingList.Builder builder) Constructor for this class, to be called from its subclasses andMailingList.Builder
. -
Method Summary
Modifier and TypeMethodDescriptionThe link to a URL where you can browse the mailing list archive.Gets the input location that caused this model to be read.getLocation
(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of the input source.getName()
The name of the mailing list.The link to alternate URLs where you can browse the list archive.getPost()
The email address or link that can be used to post to the mailing list.The email address or link that can be used to subscribe to the mailing list.The email address or link that can be used to unsubscribe to the mailing list.static MailingList.Builder
Creates a newMailingList
builder instance.static MailingList.Builder
newBuilder
(boolean withDefaults) Creates a newMailingList
builder instance using default values or not.static MailingList.Builder
newBuilder
(MailingList from) Creates a newMailingList
builder instance using the specified object as a basis.static MailingList.Builder
newBuilder
(MailingList from, boolean forceCopy) Creates a newMailingList
builder instance using the specified object as a basis.static MailingList
Creates a newMailingList
instance.static MailingList
newInstance
(boolean withDefaults) Creates a newMailingList
instance using default values or not.toString()
with()
Creates a new builder with this object as the basis.withArchive
(String archive) Creates a newMailingList
instance using the specified archive.Creates a newMailingList
instance using the specified name.withOtherArchives
(Collection<String> otherArchives) Creates a newMailingList
instance using the specified otherArchives.Creates a newMailingList
instance using the specified post.withSubscribe
(String subscribe) Creates a newMailingList
instance using the specified subscribe.withUnsubscribe
(String unsubscribe) Creates a newMailingList
instance using the specified unsubscribe.
-
Constructor Details
-
MailingList
Constructor for this class, to be called from its subclasses andMailingList.Builder
.- See Also:
-
-
Method Details
-
getName
The name of the mailing list.- Returns:
- a
String
-
getSubscribe
The email address or link that can be used to subscribe to the mailing list. If this is an email address, amailto:
link will automatically be created when the documentation is created.- Returns:
- a
String
-
getUnsubscribe
The email address or link that can be used to unsubscribe to the mailing list. If this is an email address, amailto:
link will automatically be created when the documentation is created.- Returns:
- a
String
-
getPost
The email address or link that can be used to post to the mailing list. If this is an email address, amailto:
link will automatically be created when the documentation is created.- Returns:
- a
String
-
getArchive
The link to a URL where you can browse the mailing list archive.- Returns:
- a
String
-
getOtherArchives
The link to alternate URLs where you can browse the list archive.- Returns:
- a
List<String>
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
-
getLocationKeys
Gets the keys of the locations of the input source. -
getLocationKeyStream
-
getImportedFrom
Gets the input location that caused this model to be read.- Specified by:
getImportedFrom
in interfaceInputLocationTracker
- Returns:
- InputLocation
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withName
Creates a newMailingList
instance using the specified name.- Parameters:
name
- the newString
to use- Returns:
- a
MailingList
with the specified name
-
withSubscribe
Creates a newMailingList
instance using the specified subscribe.- Parameters:
subscribe
- the newString
to use- Returns:
- a
MailingList
with the specified subscribe
-
withUnsubscribe
Creates a newMailingList
instance using the specified unsubscribe.- Parameters:
unsubscribe
- the newString
to use- Returns:
- a
MailingList
with the specified unsubscribe
-
withPost
Creates a newMailingList
instance using the specified post.- Parameters:
post
- the newString
to use- Returns:
- a
MailingList
with the specified post
-
withArchive
Creates a newMailingList
instance using the specified archive.- Parameters:
archive
- the newString
to use- Returns:
- a
MailingList
with the specified archive
-
withOtherArchives
Creates a newMailingList
instance using the specified otherArchives.- Parameters:
otherArchives
- the newCollection<String>
to use- Returns:
- a
MailingList
with the specified otherArchives
-
newInstance
Creates a newMailingList
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
MailingList
- See Also:
-
newInstance
Creates a newMailingList
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
MailingList
-
newBuilder
Creates a newMailingList
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newMailingList
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newMailingList
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theMailingList
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newMailingList
builder instance using the specified object as a basis.- Parameters:
from
- theMailingList
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
toString
-