当前位置: 首页>>代码示例>>Java>>正文


Java XmlAttribute类代码示例

本文整理汇总了Java中javax.xml.bind.annotation.XmlAttribute的典型用法代码示例。如果您正苦于以下问题:Java XmlAttribute类的具体用法?Java XmlAttribute怎么用?Java XmlAttribute使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


XmlAttribute类属于javax.xml.bind.annotation包,在下文中一共展示了XmlAttribute类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDateXMLVariant

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
@XmlAttribute(name = "date")
protected String getDateXMLVariant() {
    if (this.date == null) {
        return null;
    } else {
        return Long.toString(date.getTime());
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:SQLHistoryEntry.java

示例2: getName

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
@XmlAttribute
public String getName() {
    return name;
}
 
开发者ID:powsybl,项目名称:powsybl-core,代码行数:5,代码来源:SmallSignalSecurityIndex.java

示例3: calcXmlName

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
private QName calcXmlName(XmlAttribute att) {
    String uri;
    String local;

    uri = att.namespace();
    local = att.name();

    // compute the default
    if(local.equals("##default"))
        local = NameConverter.standard.toVariableName(getName());
    if(uri.equals("##default")) {
        XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
        // JAX-RPC doesn't want the default namespace URI swapping to take effect to
        // local "unqualified" elements. UGLY.
        if(xs!=null) {
            switch(xs.attributeFormDefault()) {
            case QUALIFIED:
                uri = parent.getTypeName().getNamespaceURI();
                if(uri.length()==0)
                    uri = parent.builder.defaultNsUri;
                break;
            case UNQUALIFIED:
            case UNSET:
                uri = "";
            }
        } else
            uri = "";
    }

    return new QName(uri.intern(),local.intern());
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:32,代码来源:AttributePropertyInfoImpl.java

示例4: getAccess

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
@XmlAttribute
public String getAccess() {
	return access;
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:5,代码来源:Event.java

示例5: setId

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
@XmlAttribute
public void setId(String id) {
    this.id = id;
}
 
开发者ID:qamatic,项目名称:mintleaf,代码行数:5,代码来源:ChangeSet.java

示例6: getVersion

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
@XmlAttribute
public String getVersion() {
    return "2.0";
}
 
开发者ID:openaudible,项目名称:openaudible,代码行数:5,代码来源:Rss.java

示例7: setParentName

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
@XmlAttribute
public void setParentName(String parentName) {
  this.parentName = parentName;
}
 
开发者ID:durimkryeziu,项目名称:family-tree-xml-parser,代码行数:5,代码来源:Entry.java

示例8: getTitle

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
@XmlAttribute
public String getTitle() {return title;}
 
开发者ID:eacp,项目名称:Luna-Exam-Builder,代码行数:3,代码来源:Question.java

示例9: getWriteRequestsCount

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
/**
 * @return the current total write requests made to region
 */
@XmlAttribute
public long getWriteRequestsCount() {
  return writeRequestsCount;
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:8,代码来源:StorageClusterStatusModel.java

示例10: getLength

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
@XmlAttribute
public long getLength() {
    return length;
}
 
开发者ID:openaudible,项目名称:openaudible,代码行数:5,代码来源:Enclosure.java

示例11: getTotalCompactingKVs

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
/**
 * @return The total number of compacting key-values
 */
@XmlAttribute
public long getTotalCompactingKVs() {
  return totalCompactingKVs;
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:8,代码来源:StorageClusterStatusModel.java

示例12: getFunctionType

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
@XmlAttribute(name="function-type")
public String getFunctionType() {
	return functionType;
}
 
开发者ID:dbiir,项目名称:ts-benchmark,代码行数:5,代码来源:FunctionParam.java

示例13: getMax

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
@XmlAttribute(name="max")
public double getMax() {
	return max;
}
 
开发者ID:dbiir,项目名称:ts-benchmark,代码行数:5,代码来源:FunctionParam.java

示例14: getLat

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
@XmlAttribute
public double getLat() {
	return lat;
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:5,代码来源:Point.java

示例15: getCycle

import javax.xml.bind.annotation.XmlAttribute; //导入依赖的package包/类
@XmlAttribute(name="cycle")
public long getCycle() {
	return cycle;
}
 
开发者ID:dbiir,项目名称:ts-benchmark,代码行数:5,代码来源:FunctionParam.java


注:本文中的javax.xml.bind.annotation.XmlAttribute类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。