use of com.ramussoft.common.Qualifier in project ramus by Vitaliy-Yakovchuk.
the class ChartPlugin method createChartSets.
private Qualifier createChartSets() {
Qualifier qualifier = engine.createSystemQualifier();
qualifier.setName(QUALIFIER_CHART_SETS);
Attribute attribute = StandardAttributesPlugin.getAttributeNameAttribute(engine);
qualifier.getAttributes().add(attribute);
qualifier.getSystemAttributes().add(StandardAttributesPlugin.getHierarchicalAttribute(engine));
qualifier.setAttributeForName(attribute.getId());
engine.updateQualifier(qualifier);
return qualifier;
}
use of com.ramussoft.common.Qualifier in project ramus by Vitaliy-Yakovchuk.
the class ChartPlugin method createCharts.
private Qualifier createCharts() {
Qualifier qualifier = engine.createSystemQualifier();
qualifier.setName(QUALIFIER_CHARTS);
Attribute attribute = StandardAttributesPlugin.getAttributeNameAttribute(engine);
qualifier.getAttributes().add(attribute);
qualifier.getSystemAttributes().add(StandardAttributesPlugin.getHierarchicalAttribute(engine));
qualifier.setAttributeForName(attribute.getId());
engine.updateQualifier(qualifier);
return qualifier;
}
use of com.ramussoft.common.Qualifier in project ramus by Vitaliy-Yakovchuk.
the class ChartPlugin method createChartLinks.
private Qualifier createChartLinks() {
Qualifier qualifier = engine.createSystemQualifier();
qualifier.setName(QUALIFIER_CHART_LINKS);
qualifier.getSystemAttributes().add(chartInSetX);
qualifier.getSystemAttributes().add(chartInSetY);
qualifier.getSystemAttributes().add(chartInSetWidth);
qualifier.getSystemAttributes().add(chartInSetHeight);
qualifier.getSystemAttributes().add(chartSet);
qualifier.getSystemAttributes().add(chart);
engine.updateQualifier(qualifier);
return qualifier;
}
use of com.ramussoft.common.Qualifier in project ramus by Vitaliy-Yakovchuk.
the class QualifierImporterImpl method createQualifier.
private Qualifier createQualifier(Qualifier sourceQualifier, Row row) {
Qualifier res = engine.getQualifierByName(sourceQualifier.getName());
if (res == null) {
Qualifier q = StandardAttributesPlugin.getQualifiersQualifier(engine);
RowSet rs = new RowSet(engine, q, new Attribute[] {});
Row parent = findParent(rs, row.getParent());
if ((parent != null) && (parent.getElement() == null))
parent = null;
if ((parent != null) && (engine.getElements(StandardAttributesPlugin.getQualifier(engine, parent.getElement()).getId()).size() > 0))
parent = null;
Element element = rs.createRow(parent).getElement();
res = StandardAttributesPlugin.getQualifier(engine, element);
res.setName(sourceQualifier.getName());
engine.updateQualifier(res);
rs.close();
}
return res;
}
use of com.ramussoft.common.Qualifier in project ramus by Vitaliy-Yakovchuk.
the class NFunction method checkAllAttributes.
private void checkAllAttributes() {
Qualifier qualifier = getQualifier();
IDEF0Plugin.checkIDEF0Attributes(engine, qualifier);
}
Aggregations