Refine search
/** * from DOM. * * @param att */ public StringArraySTAttribute(Attribute att) { this(att.getLocalName()); this.setCMLValue(att.getValue()); }
/** * from DOM. * * @param att */ public BooleanSTAttribute(Attribute att) { this(att.getLocalName()); String v = att.getValue(); if (v != null && !v.trim().equals(S_EMPTY)) { this.setCMLValue(v); } }
/** * from DOM. * * @param att */ public StringSTAttribute(Attribute att) { this(att.getLocalName()); this.setCMLValue(att.getValue()); }
/** * from DOM. * * @param att */ public IntArraySTAttribute(Attribute att) { this(att.getLocalName()); this.setCMLValue(att.getValue()); }
/** * from DOM. * * @param att */ public DoubleSTAttribute(Attribute att) { this(att.getLocalName()); String v = att.getValue(); if (v != null && !v.trim().equals(S_EMPTY)) { this.setCMLValue(v); } }
/** * from DOM. * * @param att */ public BooleanArraySTAttribute(Attribute att) { this(att.getLocalName()); this.setCMLValue(att.getValue()); }
/** * construct from existing attribute. * * @param att */ public DoubleArraySTAttribute(Attribute att) { this(att.getLocalName()); this.setCMLValue(att.getValue()); }
/** * from DOM. * * @param att */ public IntSTAttribute(Attribute att) { this(att.getLocalName()); String v = att.getValue(); if (v != null && !v.trim().equals(S_EMPTY)) { this.setCMLValue(v); } }
public NamespaceRefAttribute(Attribute att) { this(att.getLocalName()); this.setCMLValue(att.getValue()); }
/** overrides addAttribute(Attribute) * reroutes calls to setFoo() * @param att attribute */ public void addAttribute(Attribute att) { String name = att.getLocalName(); String value = att.getValue(); if (name == null) { } else if (name.equals("type")) { setType(value); } else if (name.equals("href")) { setHref(value); } else { super.addAttribute(att); } } }
/** * override name and metadataType attributes. this is because attributeGroup * and attribute have different names * * @param att */ public void addAttribute(Attribute att) { super.addAttribute(att); String name = att.getLocalName(); String value = att.getValue(); if (name.equals("metadataType")) { super.removeAttribute(att); setName(value); } }
private static Map<String, Object> buildMetadata(Element fromElem) { Map<String, Object> metadata = Maps.newHashMap(); for (int i = 0; i < fromElem.getAttributeCount(); i++) { Attribute attr = fromElem.getAttribute(i); String uri = attr.getNamespaceURI(); String name = attr.getLocalName(); if (inTmxNamespace(uri)) { String value = attr.getValue(); metadata.put(name, value); } else if (attr.getQualifiedName().equals(XML_LANG)) { String value = attr.getValue(); metadata.put(attr.getQualifiedName(), value); } } List<String> childrenXml = getChildrenAsXml(fromElem); metadata.put(TMX_ELEMENT_CHILDREN, childrenXml); return metadata; }
/** overrides addAttribute(Attribute) * reroutes calls to setFoo() * @param att attribute */ public void addAttribute(Attribute att) { String name = att.getLocalName(); String value = att.getValue(); if (name == null) { } else if (name.equals("id")) { setId(value); } else if (name.equals("convention")) { setConvention(value); } else if (name.equals("dictRef")) { setDictRef(value); } else { super.addAttribute(att); } } }
/** overrides addAttribute(Attribute) * reroutes calls to setFoo() * @param att attribute */ public void addAttribute(Attribute att) { String name = att.getLocalName(); String value = att.getValue(); if (name == null) { } else if (name.equals("title")) { setTitle(value); } else if (name.equals("id")) { setId(value); } else if (name.equals("convention")) { setConvention(value); } else if (name.equals("dictRef")) { setDictRef(value); } else { super.addAttribute(att); } } }
/** overrides addAttribute(Attribute) * reroutes calls to setFoo() * @param att attribute */ public void addAttribute(Attribute att) { String name = att.getLocalName(); String value = att.getValue(); if (name == null) { } else if (name.equals("title")) { setTitle(value); } else if (name.equals("id")) { setId(value); } else if (name.equals("convention")) { setConvention(value); } else if (name.equals("dictRef")) { setDictRef(value); } else { super.addAttribute(att); } } }
/** overrides addAttribute(Attribute) * reroutes calls to setFoo() * @param att attribute */ public void addAttribute(Attribute att) { String name = att.getLocalName(); String value = att.getValue(); if (name == null) { } else if (name.equals("title")) { setTitle(value); } else if (name.equals("id")) { setId(value); } else if (name.equals("convention")) { setConvention(value); } else if (name.equals("dictRef")) { setDictRef(value); } else { super.addAttribute(att); } } }
/** overrides addAttribute(Attribute) * reroutes calls to setFoo() * @param att attribute */ public void addAttribute(Attribute att) { String name = att.getLocalName(); String value = att.getValue(); if (name == null) { } else if (name.equals("title")) { setTitle(value); } else if (name.equals("id")) { setId(value); } else if (name.equals("convention")) { setConvention(value); } else if (name.equals("dictRef")) { setDictRef(value); } else { super.addAttribute(att); } } }
/** overrides addAttribute(Attribute) * reroutes calls to setFoo() * @param att attribute */ public void addAttribute(Attribute att) { String name = att.getLocalName(); String value = att.getValue(); if (name == null) { } else if (name.equals("title")) { setTitle(value); } else if (name.equals("id")) { setId(value); } else if (name.equals("convention")) { setConvention(value); } else if (name.equals("dictRef")) { setDictRef(value); } else { super.addAttribute(att); } } }
/** overrides addAttribute(Attribute) * reroutes calls to setFoo() * @param att attribute */ public void addAttribute(Attribute att) { String name = att.getLocalName(); String value = att.getValue(); if (name == null) { } else if (name.equals("title")) { setTitle(value); } else if (name.equals("id")) { setId(value); } else if (name.equals("convention")) { setConvention(value); } else if (name.equals("dictRef")) { setDictRef(value); } else { super.addAttribute(att); } } }
/** overrides addAttribute(Attribute) * reroutes calls to setFoo() * @param att attribute */ public void addAttribute(Attribute att) { String name = att.getLocalName(); String value = att.getValue(); if (name == null) { } else if (name.equals("title")) { setTitle(value); } else if (name.equals("id")) { setId(value); } else if (name.equals("convention")) { setConvention(value); } else if (name.equals("dictRef")) { setDictRef(value); } else { super.addAttribute(att); } } }