本文整理匯總了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());
}
}
示例2: getName
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
@XmlAttribute
public String getName() {
return name;
}
示例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());
}
示例4: getAccess
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
@XmlAttribute
public String getAccess() {
return access;
}
示例5: setId
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
@XmlAttribute
public void setId(String id) {
this.id = id;
}
示例6: getVersion
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
@XmlAttribute
public String getVersion() {
return "2.0";
}
示例7: setParentName
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
@XmlAttribute
public void setParentName(String parentName) {
this.parentName = parentName;
}
示例8: getTitle
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
@XmlAttribute
public String getTitle() {return title;}
示例9: getWriteRequestsCount
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
/**
* @return the current total write requests made to region
*/
@XmlAttribute
public long getWriteRequestsCount() {
return writeRequestsCount;
}
示例10: getLength
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
@XmlAttribute
public long getLength() {
return length;
}
示例11: getTotalCompactingKVs
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
/**
* @return The total number of compacting key-values
*/
@XmlAttribute
public long getTotalCompactingKVs() {
return totalCompactingKVs;
}
示例12: getFunctionType
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
@XmlAttribute(name="function-type")
public String getFunctionType() {
return functionType;
}
示例13: getMax
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
@XmlAttribute(name="max")
public double getMax() {
return max;
}
示例14: getLat
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
@XmlAttribute
public double getLat() {
return lat;
}
示例15: getCycle
import javax.xml.bind.annotation.XmlAttribute; //導入依賴的package包/類
@XmlAttribute(name="cycle")
public long getCycle() {
return cycle;
}