當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。