Class StandardInheritable
- java.lang.Object
-
- org.spongepowered.plugin.metadata.builtin.StandardInheritable
-
- All Implemented Interfaces:
Inheritable
- Direct Known Subclasses:
StandardPluginMetadata
public class StandardInheritable extends Object implements Inheritable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStandardInheritable.AbstractBuilder<T extends Inheritable,B extends StandardInheritable.AbstractBuilder<T,B>>static classStandardInheritable.Builderstatic classStandardInheritable.Serializer
-
Field Summary
Fields Modifier and Type Field Description protected StandardPluginBrandingbrandingprotected List<StandardPluginContributor>contributorsprotected Set<StandardPluginDependency>dependenciesprotected StandardPluginLinkslinksprotected Map<String,Object>propertiesprotected StringrawVersionprotected org.apache.maven.artifact.versioning.ArtifactVersionversion
-
Constructor Summary
Constructors Modifier Constructor Description protectedStandardInheritable(StandardInheritable.AbstractBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardPluginBrandingbranding()List<PluginContributor>contributors()Set<PluginDependency>dependencies()Optional<PluginDependency>dependency(String id)Gets theplugin dependencybyid.StandardPluginLinkslinks()Map<String,Object>properties()<T> Optional<T>property(String key)protected StringJoinerstringJoiner()StringtoString()org.apache.maven.artifact.versioning.ArtifactVersionversion()
-
-
-
Field Detail
-
version
protected final org.apache.maven.artifact.versioning.ArtifactVersion version
-
rawVersion
protected final String rawVersion
-
branding
protected final StandardPluginBranding branding
-
links
protected final StandardPluginLinks links
-
contributors
protected final List<StandardPluginContributor> contributors
-
dependencies
protected final Set<StandardPluginDependency> dependencies
-
-
Constructor Detail
-
StandardInheritable
protected StandardInheritable(StandardInheritable.AbstractBuilder builder)
-
-
Method Detail
-
version
public org.apache.maven.artifact.versioning.ArtifactVersion version()
- Specified by:
versionin interfaceInheritable- Returns:
- The
version.
-
branding
public StandardPluginBranding branding()
- Specified by:
brandingin interfaceInheritable- Returns:
- The
branding.
-
links
public StandardPluginLinks links()
- Specified by:
linksin interfaceInheritable- Returns:
- The
linksto various web resources.
-
contributors
public List<PluginContributor> contributors()
- Specified by:
contributorsin interfaceInheritable- Returns:
- The
contributorsas an unmodifiableList.
-
dependency
public Optional<PluginDependency> dependency(String id)
Description copied from interface:Inheritable- Specified by:
dependencyin interfaceInheritable- Parameters:
id- The id- Returns:
- The dependency or
Optional.empty()otherwise.
-
dependencies
public Set<PluginDependency> dependencies()
- Specified by:
dependenciesin interfaceInheritable- Returns:
- The
dependenciesas an unmodifiableSet.
-
property
public <T> Optional<T> property(String key)
Description copied from interface:Inheritable- Specified by:
propertyin interfaceInheritable- Type Parameters:
T- The type- Parameters:
key- The key- Returns:
- The property or
Optional.empty()otherwise.
-
properties
public Map<String,Object> properties()
- Specified by:
propertiesin interfaceInheritable- Returns:
- The properties as an unmodifiable
Map.
-
stringJoiner
protected StringJoiner stringJoiner()
-
-