com.boozallen.aiops.mda.metamodel.element.DictionaryElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of foundation-mda Show documentation
Show all versions of foundation-mda Show documentation
Model driven architecture artifacts for aiSSEMBLE
The newest version!
package com.boozallen.aiops.mda.metamodel.element;
/*-
* #%L
* AIOps Foundation::AIOps MDA
* %%
* Copyright (C) 2021 Booz Allen
* %%
* This software package is licensed under the Booz Allen Public License. All Rights Reserved.
* #L%
*/
import java.util.ArrayList;
import java.util.List;
import org.technologybrewery.fermenter.mda.metamodel.element.NamespacedMetamodelElement;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Represents a dictionary instance.
*/
@JsonPropertyOrder({ "package", "name" })
public class DictionaryElement extends NamespacedMetamodelElement implements Dictionary {
@JsonInclude(Include.NON_NULL)
private List dictionaryTypes = new ArrayList<>();
/**
* {@inheritDoc}
*/
@JsonInclude(Include.NON_NULL)
@Override
public List getDictionaryTypes() {
return dictionaryTypes;
}
/**
* {@inheritDoc}
*/
@Override
public String getSchemaFileName() {
return "aiops-dictionary-schema.json";
}
/**
* Adds a type to this dictionary.
*
* @param dictionaryType
* type to add
*/
public void addDictionaryType(DictionaryType dictionaryType) {
this.dictionaryTypes.add(dictionaryType);
}
/**
* {@inheritDoc}
*/
@Override
public void validate() {
super.validate();
for (DictionaryType dictionaryType : dictionaryTypes) {
dictionaryType.validate();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy