public class SymbolsEntryImpl extends Object implements SymbolsEntry
A SymbolsEntry
implementation.
Constructor and Description |
---|
SymbolsEntryImpl(String libraryName,
PackageDependency dependency)
Creates an entry.
|
SymbolsEntryImpl(String libraryName,
String dependencyValue)
Creates an entry.
|
Modifier and Type | Method and Description |
---|---|
void |
addSymbol(String name,
String version,
PackageVersion upstreamVersion)
Adds a symbol.
|
String |
getText()
Returns the entry as text.
|
void |
setAlternativeDependencyValue(String alternativeDependencyValue)
Sets the alternative dependency as string value.
|
void |
setBuildDependsPackage(PackageDependency buildDependsPackage)
Sets the build dependency.
|
public SymbolsEntryImpl(String libraryName, String dependencyValue)
Creates an entry.
libraryName
- The name of the library.dependencyValue
- The dependency as string value.IllegalArgumentException
- If any of the parameters are null
.public SymbolsEntryImpl(String libraryName, PackageDependency dependency)
Creates an entry.
libraryName
- The name of the library.dependency
- The dependency.IllegalArgumentException
- If any of the parameters are null
.public void setAlternativeDependencyValue(String alternativeDependencyValue)
Sets the alternative dependency as string value.
alternativeDependencyValue
- The alternative dependency.public void addSymbol(String name, String version, PackageVersion upstreamVersion)
Adds a symbol.
name
- The name of the symbol.version
- The version of the symbol.upstreamVersion
- The upstream version.public void setBuildDependsPackage(PackageDependency buildDependsPackage)
Sets the build dependency.
buildDependsPackage
- The build dependency.public String getText()
SymbolsEntry
Returns the entry as text.
getText
in interface SymbolsEntry
Copyright © 2015–2019. All rights reserved.