/**
* Converts the object to its string representation.
*
* @return String representation of the object.
*/
@XmlElement(name = "Value")
public String getStoreValue() {
byte[] value = this.getRawValue();
if (value != null) {
StringBuilder sb = new StringBuilder();
int i = 0;
sb.append("0x");
for (byte b : value) {
sb.append(String.format("%02x", b));
}
return sb.toString();
}
else {
return null;
}
}
java类javax.xml.bind.annotation.XmlElement的实例源码
ShardKey.java 文件源码
项目:elastic-db-tools-for-java
阅读 22
收藏 0
点赞 0
评论 0
XmlApiDeserializer.java 文件源码
项目:minlia-iot
阅读 24
收藏 0
点赞 0
评论 0
/**
* 处理@{@link XmlElement}注解
*/
@SuppressWarnings("unchecked")
protected void dealXmlElementAnnotation(Element rootElement, Field field, Object entity) {
XmlElement xmlElementAnnotation = field.getAnnotation(XmlElement.class);
Element element = rootElement.element(xmlElementAnnotation.name());
if (Objects.nonNull(element)) {
Optional<Object> valueOptional = super
.elementValue(rootElement, field.getType(), xmlElementAnnotation.name());
valueOptional.ifPresent(value -> {
try {
field.set(entity, value);
} catch (IllegalAccessException e) {
e.printStackTrace();
}
});
}
}
Pet.java 文件源码
项目:microprofile-open-api
阅读 52
收藏 0
点赞 0
评论 0
@XmlElement(name = "status")
@Schema(
name = "status",
title = "pet status in the store"//,
//_enum = {"available", "pending", "sold"}
)
public String getStatus() {
return status;
}
CElementInfo.java 文件源码
项目:OpenJSharp
阅读 19
收藏 0
点赞 0
评论 0
/**
* Returns the "squeezed name" of this element.
*
* @see CClassInfo#getSqueezedName()
*/
@XmlElement
public String getSqueezedName() {
if(squeezedName!=null) return squeezedName;
StringBuilder b = new StringBuilder();
CClassInfo s = getScope();
if(s!=null)
b.append(s.getSqueezedName());
if(className!=null)
b.append(className);
else
b.append( model.getNameConverter().toClassName(tagName.getLocalPart()));
return b.toString();
}
Vet.java 文件源码
项目:amazon-ecs-java-microservices
阅读 20
收藏 0
点赞 0
评论 0
@XmlElement
public List<Specialty> getSpecialties() {
List<Specialty> sortedSpecs = new ArrayList<>(getSpecialtiesInternal());
PropertyComparator.sort(sortedSpecs,
new MutableSortDefinition("name", true, true));
return Collections.unmodifiableList(sortedSpecs);
}
Vet.java 文件源码
项目:amazon-ecs-java-microservices
阅读 21
收藏 0
点赞 0
评论 0
@XmlElement
public List<Specialty> getSpecialties() {
List<Specialty> sortedSpecs = new ArrayList<>(getSpecialtiesInternal());
PropertyComparator.sort(sortedSpecs,
new MutableSortDefinition("name", true, true));
return Collections.unmodifiableList(sortedSpecs);
}
TransactionStatisticsElement.java 文件源码
项目:microprofile-sandbox
阅读 22
收藏 0
点赞 0
评论 0
@XmlElement
public int getActive() {
return active;
}
Vets.java 文件源码
项目:amazon-ecs-java-microservices
阅读 25
收藏 0
点赞 0
评论 0
@XmlElement
public List<Vet> getVetList() {
if (vets == null) {
vets = new ArrayList<>();
}
return vets;
}
RuntimeModeler.java 文件源码
项目:openjdk-jdk10
阅读 31
收藏 0
点赞 0
评论 0
private static QName getParameterQName(Method method, WebParam webParam, XmlElement xmlElem, String paramDefault) {
String webParamName = null;
if (webParam != null && webParam.name().length() > 0) {
webParamName = webParam.name();
}
String xmlElemName = null;
if (xmlElem != null && !xmlElem.name().equals("##default")) {
xmlElemName = xmlElem.name();
}
if (xmlElemName != null && webParamName != null && !xmlElemName.equals(webParamName)) {
throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebParam(name)="+webParamName+" are different for method " +method);
}
String localPart = paramDefault;
if (webParamName != null) {
localPart = webParamName;
} else if (xmlElemName != null) {
localPart = xmlElemName;
}
String webParamNS = null;
if (webParam != null && webParam.targetNamespace().length() > 0) {
webParamNS = webParam.targetNamespace();
}
String xmlElemNS = null;
if (xmlElem != null && !xmlElem.namespace().equals("##default")) {
xmlElemNS = xmlElem.namespace();
}
if (xmlElemNS != null && webParamNS != null && !xmlElemNS.equals(webParamNS)) {
throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebParam(targetNamespace)="+webParamNS+" are different for method " +method);
}
String ns = "";
if (webParamNS != null) {
ns = webParamNS;
} else if (xmlElemNS != null) {
ns = xmlElemNS;
}
return new QName(ns, localPart);
}
Vet.java 文件源码
项目:amazon-ecs-java-microservices
阅读 23
收藏 0
点赞 0
评论 0
@XmlElement
public List<Specialty> getSpecialties() {
List<Specialty> sortedSpecs = new ArrayList<>(getSpecialtiesInternal());
PropertyComparator.sort(sortedSpecs,
new MutableSortDefinition("name", true, true));
return Collections.unmodifiableList(sortedSpecs);
}
RuntimeModeler.java 文件源码
项目:openjdk-jdk10
阅读 22
收藏 0
点赞 0
评论 0
private static QName getReturnQName(Method method, WebResult webResult, XmlElement xmlElem) {
String webResultName = null;
if (webResult != null && webResult.name().length() > 0) {
webResultName = webResult.name();
}
String xmlElemName = null;
if (xmlElem != null && !xmlElem.name().equals("##default")) {
xmlElemName = xmlElem.name();
}
if (xmlElemName != null && webResultName != null && !xmlElemName.equals(webResultName)) {
throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebResult(name)="+webResultName+" are different for method " +method);
}
String localPart = RETURN;
if (webResultName != null) {
localPart = webResultName;
} else if (xmlElemName != null) {
localPart = xmlElemName;
}
String webResultNS = null;
if (webResult != null && webResult.targetNamespace().length() > 0) {
webResultNS = webResult.targetNamespace();
}
String xmlElemNS = null;
if (xmlElem != null && !xmlElem.namespace().equals("##default")) {
xmlElemNS = xmlElem.namespace();
}
if (xmlElemNS != null && webResultNS != null && !xmlElemNS.equals(webResultNS)) {
throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebResult(targetNamespace)="+webResultNS+" are different for method " +method);
}
String ns = "";
if (webResultNS != null) {
ns = webResultNS;
} else if (xmlElemNS != null) {
ns = xmlElemNS;
}
return new QName(ns, localPart);
}
Vets.java 文件源码
项目:amazon-ecs-java-microservices
阅读 23
收藏 0
点赞 0
评论 0
@XmlElement
public List<Vet> getVetList() {
if (vets == null) {
vets = new ArrayList<>();
}
return vets;
}
Vets.java 文件源码
项目:amazon-ecs-java-microservices
阅读 23
收藏 0
点赞 0
评论 0
@XmlElement
public List<Vet> getVetList() {
if (vets == null) {
vets = new ArrayList<>();
}
return vets;
}
RuntimeModeler.java 文件源码
项目:OpenJSharp
阅读 28
收藏 0
点赞 0
评论 0
private static QName getParameterQName(Method method, WebParam webParam, XmlElement xmlElem, String paramDefault) {
String webParamName = null;
if (webParam != null && webParam.name().length() > 0) {
webParamName = webParam.name();
}
String xmlElemName = null;
if (xmlElem != null && !xmlElem.name().equals("##default")) {
xmlElemName = xmlElem.name();
}
if (xmlElemName != null && webParamName != null && !xmlElemName.equals(webParamName)) {
throw new RuntimeModelerException("@XmlElement(name)="+xmlElemName+" and @WebParam(name)="+webParamName+" are different for method " +method);
}
String localPart = paramDefault;
if (webParamName != null) {
localPart = webParamName;
} else if (xmlElemName != null) {
localPart = xmlElemName;
}
String webParamNS = null;
if (webParam != null && webParam.targetNamespace().length() > 0) {
webParamNS = webParam.targetNamespace();
}
String xmlElemNS = null;
if (xmlElem != null && !xmlElem.namespace().equals("##default")) {
xmlElemNS = xmlElem.namespace();
}
if (xmlElemNS != null && webParamNS != null && !xmlElemNS.equals(webParamNS)) {
throw new RuntimeModelerException("@XmlElement(namespace)="+xmlElemNS+" and @WebParam(targetNamespace)="+webParamNS+" are different for method " +method);
}
String ns = "";
if (webParamNS != null) {
ns = webParamNS;
} else if (xmlElemNS != null) {
ns = xmlElemNS;
}
return new QName(ns, localPart);
}
Vets.java 文件源码
项目:amazon-ecs-java-microservices
阅读 23
收藏 0
点赞 0
评论 0
@XmlElement
public List<Vet> getVetList() {
if (vets == null) {
vets = new ArrayList<>();
}
return vets;
}
Channel.java 文件源码
项目:openaudible
阅读 39
收藏 0
点赞 0
评论 0
@XmlElement(namespace = "http://www.itunes.com/dtds/podcast-1.0.dtd")
public Owner getOwner() {
return owner;
}
ListBucketResult.java 文件源码
项目:S3Mock
阅读 27
收藏 0
点赞 0
评论 0
/**
* @return the commonPrefixes
*/
@XmlElement(name = "CommonPrefixes")
public String getCommonPrefixes() {
return commonPrefixes;
}
Department.java 文件源码
项目:Spring-5.0-Cookbook
阅读 57
收藏 0
点赞 0
评论 0
@XmlElement
public Integer getId() {
return id;
}
Employee.java 文件源码
项目:mdw-demo
阅读 37
收藏 0
点赞 0
评论 0
@XmlElement(name="sapId", namespace="http://mdw.centurylink.com/serviceTypes")
public String getSapId() { return sapId; }
Channel.java 文件源码
项目:openaudible
阅读 21
收藏 0
点赞 0
评论 0
@XmlElement(namespace = "http://www.w3.org/2005/Atom", name = "link")
public AtomLink getAtomLink() {
return atomLink;
}
ToadData.java 文件源码
项目:zooracle
阅读 20
收藏 0
点赞 0
评论 0
@XmlElement
public void setSize2(double size2)
{
this.size2 = size2;
}
CoordinatorElement.java 文件源码
项目:microprofile-sandbox
阅读 20
收藏 0
点赞 0
评论 0
@XmlElement
public long getTimeout() {
return timeout;
}
Book.java 文件源码
项目:Learning-Spring-5.0
阅读 32
收藏 0
点赞 0
评论 0
@XmlElement
public void setPublication(String publication) {
this.publication = publication;
}
CharmStatus.java 文件源码
项目:CharmMylynConnector
阅读 21
收藏 0
点赞 0
评论 0
@XmlElement(name = "STATUS_KEY")
public String getStatusKey() {
return statusKey;
}
PrivEscalationInstance.java 文件源码
项目:DELDroid
阅读 51
收藏 0
点赞 0
评论 0
@XmlElement(name = "malComp")
public String getMalComp(){
return this.malComp.getFullName();
}
States.java 文件源码
项目:oscm
阅读 21
收藏 0
点赞 0
评论 0
@XmlElement(name = "state")
public List<State> getStates() {
return states;
}
HostIPsListWrapper.java 文件源码
项目:redirector
阅读 24
收藏 0
点赞 0
评论 0
@XmlElement(name="host")
public List<HostIPs> getHostIPsList() {
return hostIPsList;
}
RoleBasedFilterConfig.java 文件源码
项目:oscm
阅读 24
收藏 0
点赞 0
评论 0
@XmlElement(name = "configEntry")
public Set<RoleBasedFilterConfigEntry> getEntries() {
return entries;
}
ODataErrorMessage.java 文件源码
项目:personium-core
阅读 20
收藏 0
点赞 0
评论 0
/**
* @return the code
*/
@XmlElement(name = "code")
public String getCode() {
return code;
}
TwoPhaseUnawareParticipantElement.java 文件源码
项目:microprofile-sandbox
阅读 30
收藏 0
点赞 0
评论 0
@XmlElement
public String getCommitURI() {
return commitURI;
}