public DescriptionBuilder reset(Description original) { unset = false; title = original.getTitle(); description = original.getAbstract(); return this; }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { StyledLayerDescriptor sld = (StyledLayerDescriptor) super.parse(instance, node, value); if (node.hasChild("Description")) { Description desc = (Description) node.getChildValue("Description"); if (desc.getAbstract() != null) { sld.setAbstract(desc.getAbstract().toString()); } if (desc.getTitle() != null) { sld.setTitle(desc.getTitle().toString()); } } return sld; } }
/** * * <!-- 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 { 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 { 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; } }
public void visit(FeatureTypeStyle fts) { start("FeatureTypeStyle"); if ((fts.getName() != null) && (fts.getName().length() > 0)) { element("Name", fts.getName()); } if (fts.getDescription() != null && fts.getDescription().getTitle() != null) element("Title", fts.getDescription().getTitle()); if (fts.getDescription() != null && fts.getDescription().getAbstract() != null) element("Abstract", fts.getDescription().getAbstract()); if ((fts.featureTypeNames() != null) && (fts.featureTypeNames().size() > 0)) { element("FeatureTypeName", fts.featureTypeNames().iterator().next().toString()); } if (fts.getTransformation() != null) { element("Transformation", fts.getTransformation()); } String[] sti = fts.getSemanticTypeIdentifiers(); if (sti.length != 1 || !sti[0].equals(SemanticType.ANY.toString())) { for (int i = 0; i < sti.length; i++) { element("SemanticTypeIdentifier", sti[i]); } } Rule[] rules = fts.getRules(); for (int i = 0; i < rules.length; i++) { rules[i].accept(this); } encodeVendorOptions(fts.getOptions()); end("FeatureTypeStyle"); }
public void visit(Style style) { if (style instanceof NamedStyle) { start("NamedStyle"); element("Name", style.getName()); end("NamedStyle"); } else { start("UserStyle"); element("Name", style.getName()); if (style.getDescription() != null && style.getDescription().getTitle() != null) element("Title", style.getDescription().getTitle()); if (style.isDefault()) { element("IsDefault", "1"); } if (style.getDescription() != null && style.getDescription().getAbstract() != null) element("Abstract", style.getDescription().getAbstract()); FeatureTypeStyle[] fts = style.getFeatureTypeStyles(); for (int i = 0; i < fts.length; i++) { visit(fts[i]); } end("UserStyle"); } }
if (rule.getDescription() != null && rule.getDescription().getTitle() != null) element("Title", rule.getDescription().getTitle()); if (rule.getDescription() != null && rule.getDescription().getAbstract() != null) element("Abstract", rule.getDescription().getAbstract());
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { StyledLayerDescriptor sld = (StyledLayerDescriptor) super.parse(instance, node, value); if (node.hasChild("Description")) { Description desc = (Description) node.getChildValue("Description"); if (desc.getAbstract() != null) { sld.setAbstract(desc.getAbstract().toString()); } if (desc.getTitle() != null) { sld.setTitle(desc.getTitle().toString()); } } return sld; }
@Override public void visit(Rule rule) { super.visit(rule); Rule copy = (Rule) pages.peek(); Description description = new DescriptionImpl( new SimpleInternationalString(targetLabel), copy.getDescription() != null ? copy.getDescription().getAbstract() : null); copy.setDescription(description); } }
/** * <!-- 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; }
element("Title", fts.getDescription().getTitle()); if (fts.getDescription() != null && fts.getDescription().getAbstract() != null) element("Abstract", fts.getDescription().getAbstract());
private void handleCommonStyleElements(StyleInfo styleInfo) { Style ftStyle; try { ftStyle = styleInfo.getStyle(); } catch (IOException e) { throw new RuntimeException(e); } element("Name", styleInfo.prefixedName()); if (ftStyle.getDescription() != null) { if (ftStyle.getDescription().getTitle() != null) { element("Title", ftStyle.getDescription().getTitle()); } else { // Title is not required by the SLD spec, but it is required // by the WMS 1.1 DTD so we have to provide something. element("Title", styleInfo.prefixedName()); } element("Abstract", ftStyle.getDescription().getAbstract()); } }
/** * <!-- 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; }
private void handleCommonStyleElements(StyleInfo defaultStyle) { Style ftStyle; try { ftStyle = defaultStyle.getStyle(); } catch (IOException e) { throw new RuntimeException(e); } element("Name", defaultStyle.prefixedName()); if (ftStyle.getDescription() != null) { // PMT: WMS capabilities requires at least a title, // if description's title is null, use the name // for title. if (ftStyle.getDescription().getTitle() != null) { element("Title", ftStyle.getDescription().getTitle()); } else { element("Title", defaultStyle.prefixedName()); } element("Abstract", ftStyle.getDescription().getAbstract()); } else { element("Title", defaultStyle.prefixedName()); } }
public void visit(Style style) { if (style instanceof NamedStyle) { start("NamedStyle"); element("Name", style.getName()); end("NamedStyle"); } else { start("UserStyle"); element("Name", style.getName()); if (style.getDescription() != null && style.getDescription().getTitle() != null) element("Title", style.getDescription().getTitle()); if(style.isDefault()) { element("IsDefault", "1"); } if (style.getDescription() != null && style.getDescription().getAbstract() != null) element("Abstract", style.getDescription().getAbstract()); FeatureTypeStyle[] fts = style.getFeatureTypeStyles(); for (int i = 0; i < fts.length; i++) { visit(fts[i]); } end("UserStyle"); } }
element("Title", rule.getDescription().getTitle()); if (rule.getDescription() != null && rule.getDescription().getAbstract() != null) element("Abstract", rule.getDescription().getAbstract());
InternationalString abstractDesc = description.getAbstract();