类javax.xml.bind.annotation.XmlAnyAttribute源码实例Demo

下面列出了怎么用javax.xml.bind.annotation.XmlAnyAttribute的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: nifi-registry   文件: JaxbLink.java
/**
 * 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;
}
 
源代码2 项目: niftyeditor   文件: GElement.java
@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;
}
 
源代码3 项目: niftyeditor   文件: GEffect.java
@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;
}
 
源代码4 项目: KodeBeagle   文件: TransportClient.java
@XmlAnyAttribute public boolean isActive() {
  return channel.isOpen() || channel.isActive();
}
 
源代码5 项目: jaxb2-basics   文件: AnnotatePropertyVisitor.java
public Void visitAnyAttributePropertyInfo(
		MAnyAttributePropertyInfo<NType, NClass> info) {
	this.annotatable.annotate(XmlAnyAttribute.class);
	return null;
}
 
protected void annotate(JAnnotatable annotatable) {
	annotatable.annotate(XmlAnyAttribute.class);
}
 
源代码7 项目: hbase   文件: ColumnSchemaModel.java
/**
 * @return the map for holding unspecified (user) attributes
 */
@XmlAnyAttribute
@JsonAnyGetter
public Map<QName,Object> getAny() {
  return attrs;
}
 
源代码8 项目: hbase   文件: TableSchemaModel.java
/**
 * @return the map for holding unspecified (user) attributes
 */
@XmlAnyAttribute
@JsonAnyGetter
public Map<QName,Object> getAny() {
  return attrs;
}
 
 同包方法