本文整理汇总了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;
}