Class ResourceObject
java.lang.Object
org.jdrupes.builder.core.ResourceObject
- Direct Known Subclasses:
DefaultBndBaselineEvaluation, DefaultEclipseConfiguration, DefaultExecResult, DefaultFileResource, DefaultMvnRepoResource, DefaultResources, DefaultTestResult, JarFileEntry, ServicesEntryResource
A base class for
Resources.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate a new instance.protectedResourceObject(ResourceType<?> type) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisLocked()Checks if the instance has been used in a comparison (hashCodeorequals) and is therefore locked for further modifications.name()Returns the name of this resource if set.Sets the name of the resource.toString()ResourceType<?> type()Returns the type of this resource.Methods inherited from interface Resource
asOf, asOfLocalized
-
Constructor Details
-
ResourceObject
protected ResourceObject()Create a new instance. -
ResourceObject
-
-
Method Details
-
type
Description copied from interface:ResourceReturns the type of this resource. -
name
-
name
Sets the name of the resource.- Parameters:
name- the name- Returns:
- the resource object
-
isLocked
Checks if the instance has been used in a comparison (hashCodeorequals) and is therefore locked for further modifications.- Returns:
- true, if is locked
-
hashCode
-
equals
-
toString
-