public final class ArtifactDeclaration extends EnrichableElementDeclaration
declaringExtension, name
Constructor and Description |
---|
ArtifactDeclaration() |
Modifier and Type | Method and Description |
---|---|
ArtifactDeclaration |
addGlobalElement(GlobalElementDeclaration declaration)
Adds a property to the
ElementDeclaration . |
boolean |
equals(Object o) |
<T extends ElementDeclaration> |
findElement(Location location)
|
List<GlobalElementDeclaration> |
getGlobalElements() |
int |
hashCode() |
addCustomConfigurationParameter, addMetadataProperty, getCustomConfigurationParameters, getMetadataProperties, getMetadataProperty
getDeclaringExtension, getName, setDeclaringExtension, setName
public List<GlobalElementDeclaration> getGlobalElements()
List
of global elements
associated with
this
ArtifactDeclaration
public ArtifactDeclaration addGlobalElement(GlobalElementDeclaration declaration)
ElementDeclaration
.
This property is meant to hold only metadata of the declaration.declaration
- the GlobalElementDeclaration
to add.public <T extends ElementDeclaration> Optional<T> findElement(Location location)
location
- the absolute Location
of the ElementDeclaration
as part
of this
ArtifactDeclaration
ElementDeclaration
located by the given Location
or Optional.empty()
if no ElementDeclaration
was found in that location.public boolean equals(Object o)
equals
in class EnrichableElementDeclaration
public int hashCode()
hashCode
in class EnrichableElementDeclaration
Copyright © 2018. All rights reserved.