javax.xml.bind.annotation.XmlAnyAttribute Java Examples

The following examples show how to use javax.xml.bind.annotation.XmlAnyAttribute. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JaxbLink.java    From nifi-registry with Apache License 2.0 5 votes vote down vote up
/**
 * Get the parameter map for this link.
 *
 * @return parameter map.
 */
@XmlAnyAttribute
@ApiModelProperty(name = "params", value = "The params for the link")
public Map<String,String> getParams() {
    if (params == null) {
        params = new HashMap<>();
    }
    return params;
}
 
Example #2
Source File: GElement.java    From niftyeditor with Apache License 2.0 5 votes vote down vote up
@XmlAnyAttribute
public Map<QName, String> getXmlAttributes() {
    Map<QName, String> res = new HashMap<QName, String>();
    for (String s : this.attributes.keySet()) {
        if (!s.equals("id") && !s.equals("name")) {
            QName qname = QName.valueOf(XMLConstants.NULL_NS_URI + s);
            res.put(qname, this.attributes.get(s));
        }
    }
    return res;
}
 
Example #3
Source File: GEffect.java    From niftyeditor with Apache License 2.0 5 votes vote down vote up
@XmlAnyAttribute
public Map<QName, String> getXmlAttributes() {
    Map<QName, String> res = new HashMap<QName, String>();
    for (String s : this.effectType.getAttributes().getAttributes().keySet()) {
        
            QName qname = QName.valueOf(XMLConstants.NULL_NS_URI + s);
            res.put(qname, getAttribute(s));
        
    }
    return res;
}
 
Example #4
Source File: TransportClient.java    From KodeBeagle with Apache License 2.0 4 votes vote down vote up
@XmlAnyAttribute public boolean isActive() {
  return channel.isOpen() || channel.isActive();
}
 
Example #5
Source File: AnnotatePropertyVisitor.java    From jaxb2-basics with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public Void visitAnyAttributePropertyInfo(
		MAnyAttributePropertyInfo<NType, NClass> info) {
	this.annotatable.annotate(XmlAnyAttribute.class);
	return null;
}
 
Example #6
Source File: AnyAttributePropertyOutline.java    From jaxb2-basics with BSD 2-Clause "Simplified" License 4 votes vote down vote up
protected void annotate(JAnnotatable annotatable) {
	annotatable.annotate(XmlAnyAttribute.class);
}
 
Example #7
Source File: TableSchemaModel.java    From hbase with Apache License 2.0 4 votes vote down vote up
/**
 * @return the map for holding unspecified (user) attributes
 */
@XmlAnyAttribute
@JsonAnyGetter
public Map<QName,Object> getAny() {
  return attrs;
}
 
Example #8
Source File: ColumnSchemaModel.java    From hbase with Apache License 2.0 3 votes vote down vote up
/**
 * @return the map for holding unspecified (user) attributes
 */
@XmlAnyAttribute
@JsonAnyGetter
public Map<QName,Object> getAny() {
  return attrs;
}