rule.setName(getFirstChildValue(child)); } else if (childName.equalsIgnoreCase("Title")) { rule.getDescription().setTitle(parseInternationalString(child)); } else if (childName.equalsIgnoreCase("Abstract")) { rule.getDescription().setAbstract(parseInternationalString(child));
} else if (childName.equalsIgnoreCase("Title")) { style.getDescription().setTitle(parseInternationalString(child)); } else if (childName.equalsIgnoreCase("Abstract")) { style.getDescription().setAbstract(parseInternationalString(child));
ft.setName(getFirstChildValue(child)); } else if (childName.equalsIgnoreCase("Title")) { ft.getDescription().setTitle(parseInternationalString(child)); } else if (childName.equalsIgnoreCase("Abstract")) { ft.getDescription().setAbstract(parseInternationalString(child));
featureTypeStyle .getDescription() .setTitle((InternationalString) node.getChildValue("Title"));
public Style build() { if (unset) { return null; } Style s; if (fts.size() == 0) { s = sf.createNamedStyle(); s.setName(name); } else { s = sf.createStyle(); s.setName(name); if (styleAbstract != null) s.getDescription().setAbstract(new SimpleInternationalString(styleAbstract)); if (title != null) s.getDescription().setTitle(new SimpleInternationalString(title)); for (FeatureTypeStyleBuilder builder : fts) { s.featureTypeStyles().add(builder.build()); } s.setDefault(isDefault); } reset(); return s; }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { Style style = (Style) super.parse(instance, node, value); if (node.hasChild("Description")) { Description desc = (Description) node.getChildValue("Description"); style.getDescription().setAbstract(desc.getAbstract()); style.getDescription().setTitle(desc.getTitle()); } // TODO: OnlineResource return style; } }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { NamedStyle style = (NamedStyle) super.parse(instance, node, value); if (node.hasChild("Description")) { Description desc = (Description) node.getChildValue("Description"); style.getDescription().setAbstract(desc.getAbstract()); style.getDescription().setTitle(desc.getTitle()); } return style; } }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { FeatureTypeStyle fts = (FeatureTypeStyle) super.parse(instance, node, value); if (node.hasChild("Description")) { Description d = (Description) node.getChildValue("Description"); fts.getDescription().setTitle(d.getTitle()); fts.getDescription().setAbstract(d.getAbstract()); } return fts; } }
style.getDescription().setTitle((InternationalString) node.getChildValue("Title"));
@Override public void handle(YamlObject<?> obj, YamlParseContext context) { YamlSeq seq = obj.seq(); for (YamlObject<?> o : seq) { YamlMap fs = o.map(); FeatureTypeStyle featureStyle = factory.style.createFeatureTypeStyle(); style.featureTypeStyles().add(featureStyle); featureStyle.setName(fs.str("name")); if (fs.has("title")) { featureStyle.getDescription().setTitle(fs.str("title")); } if (fs.has("abstract")) { featureStyle.getDescription().setAbstract(fs.str("abstract")); } featureStyle.getOptions().putAll(Util.vendorOptions(fs)); context.push(fs, "transform", new TransformHandler(featureStyle, factory)); context.push(fs, "rules", new RuleParser(featureStyle, factory)); } } }
rule.getDescription().setTitle((InternationalString) node.getChildValue("Title"));
rule.setName(getFirstChildValue(child)); } else if (childName.equalsIgnoreCase("Title")) { rule.getDescription().setTitle(parseInternationalString(child)); } else if (childName.equalsIgnoreCase("Abstract")) { rule.getDescription().setAbstract(parseInternationalString(child));
ft.setName(getFirstChildValue(child)); } else if (childName.equalsIgnoreCase("Title")) { ft.getDescription().setTitle(parseInternationalString(child)); } else if (childName.equalsIgnoreCase("Abstract")) { ft.getDescription().setAbstract(parseInternationalString(child));
featureTypeStyle.getDescription().setTitle( (InternationalString) node.getChildValue("Title"));
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { Style style = (Style) super.parse(instance, node, value); if (node.hasChild("Description")) { Description desc = (Description) node.getChildValue("Description"); style.getDescription().setAbstract(desc.getAbstract()); style.getDescription().setTitle(desc.getTitle()); } //TODO: OnlineResource return style; }
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { NamedStyle style = (NamedStyle) super.parse(instance, node, value); if (node.hasChild("Description")) { Description desc = (Description) node.getChildValue("Description"); style.getDescription().setAbstract(desc.getAbstract()); style.getDescription().setTitle(desc.getTitle()); } return style; }
style.getDescription().setTitle( (InternationalString) node.getChildValue("Title"));
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { FeatureTypeStyle fts = (FeatureTypeStyle) super.parse(instance, node, value); if (node.hasChild("Description")) { Description d = (Description) node.getChildValue("Description"); fts.getDescription().setTitle(d.getTitle()); fts.getDescription().setAbstract(d.getAbstract()); } //TODO: version if (node.hasChild("version")) { } return fts; }
@Override public void handle(YamlObject<?> obj, YamlParseContext context) { YamlSeq seq = obj.seq(); for (YamlObject<?> o : seq) { YamlMap fs = o.map(); FeatureTypeStyle featureStyle = factory.style.createFeatureTypeStyle(); style.featureTypeStyles().add(featureStyle); featureStyle.setName(fs.str("name")); if (fs.has("title")) { featureStyle.getDescription().setTitle(fs.str("title")); } if (fs.has("abstract")) { featureStyle.getDescription().setAbstract(fs.str("abstract")); } featureStyle.getOptions().putAll(Util.vendorOptions(fs)); context.push(fs, "transform", new TransformHandler(featureStyle, factory)); context.push(fs, "rules", new RuleParser(featureStyle, factory)); } } }
rule.getDescription().setTitle( (InternationalString) node.getChildValue("Title"));