Package com._1c.g5.v8.dt.core.library
Class LibraryDescriptor
- java.lang.Object
-
- com._1c.g5.v8.dt.core.library.LibraryDescriptor
-
public class LibraryDescriptor extends Object
The library description. Stores the library name, version, vendor, model version, runtime version and its location.
-
-
Field Summary
Fields Modifier and Type Field Description static String
LIBRARY_VERSION_PATTERN
The library version regex pattern.
-
Constructor Summary
Constructors Constructor Description LibraryDescriptor(String libraryName, String libraryVersion, String libraryVendor, String libraryModelVersion, Version libraryRuntimeVersion, CompatibilityMode libraryCompatibilityMode, Path libraryLocation)
Creates a library descriptor with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
boolean
fitsLibraryDependency(LibraryDependency libraryDependency)
Checks whether this descriptor fits the specified dependency on the library.CompatibilityMode
getLibraryCompatibilityMode()
Returns the library compatibility mode.Path
getLibraryLocation()
Returns the library location.String
getLibraryModelVersion()
Returns the library model version.String
getLibraryName()
Returns the library name.Version
getLibraryRuntimeVersion()
Returns the library runtime version.String
getLibraryVendor()
Returns the library vendor.String
getLibraryVersion()
Returns the library version.int
hashCode()
-
-
-
Field Detail
-
LIBRARY_VERSION_PATTERN
public static final String LIBRARY_VERSION_PATTERN
The library version regex pattern.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LibraryDescriptor
public LibraryDescriptor(String libraryName, String libraryVersion, String libraryVendor, String libraryModelVersion, Version libraryRuntimeVersion, CompatibilityMode libraryCompatibilityMode, Path libraryLocation)
Creates a library descriptor with the given parameters.- Parameters:
libraryName
- the library name, cannot benull
libraryVersion
- the library version, cannot benull
libraryVendor
- the library vendor, cannot benull
libraryModelVersion
- the library model version, cannot benull
libraryRuntimeVersion
- the library runtime version, cannot benull
libraryCompatibilityMode
- the library compatibility mode, cannot benull
libraryLocation
- the library location, cannot benull
-
-
Method Detail
-
getLibraryName
public String getLibraryName()
Returns the library name.- Returns:
- the library name, never
null
-
getLibraryVersion
public String getLibraryVersion()
Returns the library version.- Returns:
- the library version, never
null
-
getLibraryVendor
public String getLibraryVendor()
Returns the library vendor.- Returns:
- the library vendor, never
null
-
getLibraryModelVersion
public String getLibraryModelVersion()
Returns the library model version.- Returns:
- the library model version, never
null
-
getLibraryRuntimeVersion
public Version getLibraryRuntimeVersion()
Returns the library runtime version.- Returns:
- the library runtime version, never
null
-
getLibraryCompatibilityMode
public CompatibilityMode getLibraryCompatibilityMode()
Returns the library compatibility mode.- Returns:
- the library compatibility mode, never
null
-
getLibraryLocation
public Path getLibraryLocation()
Returns the library location.- Returns:
- the library location, never
null
-
fitsLibraryDependency
public boolean fitsLibraryDependency(LibraryDependency libraryDependency)
Checks whether this descriptor fits the specified dependency on the library.- Parameters:
libraryDependency
- the dependency on the library, cannot benull
- Returns:
true
if this descriptor fits the dependency on the library,false
otherwise
-
-