diff options
author | 2018-12-25 17:41:33 +0200 | |
---|---|---|
committer | 2019-01-07 10:27:45 +0200 | |
commit | 16cfd402db3048735615f11751c512386dfc0382 (patch) | |
tree | e95778eaefdb78ad72b744935f94ec92471f3dae /src/main/java/org/onap/sdc/tosca/parser/api/IEntityDetails.java | |
parent | e502e8a5b21819ddaceb7c7d3ab387467231cc3c (diff) |
SDC Tosca Parser getEntity API
Change-Id: I4232c4ca85432bf9c81a81d717bee23b187182aa
Issue-ID: SDC-1967
Signed-off-by: Manzon, Inna (im453s) <im453s@intl.att.com>
Diffstat (limited to 'src/main/java/org/onap/sdc/tosca/parser/api/IEntityDetails.java')
-rw-r--r-- | src/main/java/org/onap/sdc/tosca/parser/api/IEntityDetails.java | 60 |
1 files changed, 58 insertions, 2 deletions
diff --git a/src/main/java/org/onap/sdc/tosca/parser/api/IEntityDetails.java b/src/main/java/org/onap/sdc/tosca/parser/api/IEntityDetails.java index f8e8c6e..c4393cc 100644 --- a/src/main/java/org/onap/sdc/tosca/parser/api/IEntityDetails.java +++ b/src/main/java/org/onap/sdc/tosca/parser/api/IEntityDetails.java @@ -1,20 +1,76 @@ package org.onap.sdc.tosca.parser.api; import org.onap.sdc.tosca.parser.enums.EntityTemplateType; +import org.onap.sdc.toscaparser.api.CapabilityAssignment; import org.onap.sdc.toscaparser.api.Property; +import org.onap.sdc.toscaparser.api.RequirementAssignment; import org.onap.sdc.toscaparser.api.elements.Metadata; import java.util.List; import java.util.Map; public interface IEntityDetails { + /** + * Retrieves entity instance template type. + * @return {@link EntityTemplateType} enum entry describing given object type + */ EntityTemplateType getType(); + + /** + * Retrieves entity instance name + */ String getName(); + + /** + * Retrieves entity {@link Metadata} object + */ Metadata getMetadata(); + + /** + * Retrieves entity instance properties + * @return map of entity property names and corresponding {@link Property} object instances + */ Map<String, Property> getProperties(); - List<Property> getPropertyList(); + + /** + * Retrieves member nodes of the entity instance + * @return List of member nodes entity objects + */ List<IEntityDetails> getMemberNodes(); + + /** + * Retrieves node template containing the current entity instance. + * @return parent entity instance or null if the entity is contained by service + */ IEntityDetails getParent(); + + /** + * Retrieves path to the searched entity instance in the model. It is based on the collection of the node templates names delimited by #. + * The entity instance may exist in the service node templates, in the VF node templates or in the nested of nested CVFC. + * The path will include the VF name, then the names of the CVFC recursively. + * If the entity instance is located in the service directly, the path is empty string + */ String getPath(); -} + /** + * Retrieves map of requirements of the entity instance + * @return map of entity requirement names and corresponding {@link RequirementAssignment} object instances + */ + Map<String, RequirementAssignment> getRequirements(); + + /** + * Retrieves map of capabilities of the entity instance + * @return map of entity capability names and corresponding {@link CapabilityAssignment} object instances + */ + Map<String, CapabilityAssignment> getCapabilities(); + + /** + * Retrieves list of policy target names + */ + List<String> getTargets(); + + /** + * Retrieves list of policy target entity instances (groups or node templates) + */ + List<IEntityDetails> getTargetNodes(); +}
\ No newline at end of file |