javax.xml.bind.annotation.XmlAttribute Java Examples

The following examples show how to use javax.xml.bind.annotation.XmlAttribute. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AnnotatePropertyVisitor.java    From jaxb2-basics with BSD 2-Clause "Simplified" License 6 votes vote down vote up
public Void visitAttributePropertyInfo(
		MAttributePropertyInfo<NType, NClass> info) {

	JAnnotationUse annotation = this.annotatable
			.annotate(XmlAttribute.class);

	final String name = info.getAttributeName().getLocalPart();
	final String namespace = info.getAttributeName().getNamespaceURI();

	annotation.param("name", name);

	// generate namespace property?
	if (!namespace.equals("")) { // assume attributeFormDefault ==
									// unqualified
		annotation.param("namespace", namespace);
	}

	// TODO
	// if(info.isRequired()) {
	// xaw.required(true);
	// }

	return null;
}
 
Example #2
Source File: ISOMetadata.java    From sis with Apache License 2.0 5 votes vote down vote up
/**
 * Returns an unique identifier, or {@code null} if none.
 * This method is invoked automatically by JAXB and should never be invoked explicitly.
 */
@XmlAttribute                           // Defined in "gco" as unqualified attribute.
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
private String getUUID() {
    /*
     * IdentifierMapAdapter will take care of converting UUID to String,
     * or to return a previously stored String if it was an unparsable UUID.
     */
    return isNullOrEmpty(identifiers) ? null : getIdentifierMap().get(IdentifierSpace.UUID);
}
 
Example #3
Source File: CustomDispatch.java    From knox with Apache License 2.0 4 votes vote down vote up
@XmlAttribute(name = "contributor-name")
public String getContributorName() {
  return contributorName;
}
 
Example #4
Source File: ScannerModel.java    From hbase with Apache License 2.0 4 votes vote down vote up
/**
 * @return start row
 */
@XmlAttribute
public byte[] getStartRow() {
  return startRow;
}
 
Example #5
Source File: MCRInfo.java    From mycore with GNU General Public License v3.0 4 votes vote down vote up
@JsonProperty(required = true)
@XmlAttribute
@XmlJavaTypeAdapter(MCRInstantXMLAdapter.class)
public Instant getTime() {
    return time;
}
 
Example #6
Source File: OrderRO.java    From yes-cart with Apache License 2.0 4 votes vote down vote up
@XmlAttribute(name = "symbol")
public String getSymbol() {
    return symbol;
}
 
Example #7
Source File: BIGlobalBinding.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@XmlAttribute
void setGenerateIsSetMethod(boolean b) {
    optionalProperty = b ? OptionalPropertyMode.ISSET : OptionalPropertyMode.WRAPPER;
}
 
Example #8
Source File: MCRRestObjectIDDate.java    From mycore with GNU General Public License v3.0 4 votes vote down vote up
@XmlAttribute(required = true)
@XmlJavaTypeAdapter(value = MCRInstantXMLAdapter.class)
public Instant getLastModified() {
    return lastModified;
}
 
Example #9
Source File: JApiClassFileFormatVersion.java    From japicmp with Apache License 2.0 4 votes vote down vote up
@XmlAttribute(name = "minorVersionOld")
public int getMinorVersionOld() {
	return minorVersionOld;
}
 
Example #10
Source File: JaxbPermission.java    From documentum-rest-client-java with Apache License 2.0 4 votes vote down vote up
@Override
@XmlAttribute(name="basic-permission")
public String getBasicPermission() {
    return basicPermission;
}
 
Example #11
Source File: XInput.java    From sissi with Apache License 2.0 4 votes vote down vote up
@XmlAttribute(name = "label")
public String getLabel() {
	return this.name;
}
 
Example #12
Source File: VehicleTO.java    From openAGV with Apache License 2.0 4 votes vote down vote up
@XmlAttribute
@XmlSchemaType(name = "unsignedInt")
public int getMaxReverseVelocity() {
  return maxReverseVelocity;
}
 
Example #13
Source File: JApiAnnotationElementValue.java    From japicmp with Apache License 2.0 4 votes vote down vote up
@XmlAttribute(name = "type")
public String getTypeString() {
	return type.name();
}
 
Example #14
Source File: Event.java    From defense-solutions-proofs-of-concept with Apache License 2.0 4 votes vote down vote up
@XmlAttribute
@XmlJavaTypeAdapter(DateFormatterAdapter.class)
public Date getStale() {
	return stale;
}
 
Example #15
Source File: OrderItemRO.java    From yes-cart with Apache License 2.0 4 votes vote down vote up
@XmlJavaTypeAdapter(LocalDateTimeAdapter.class)
@XmlAttribute(name = "item-delivery-guaranteed")
public LocalDateTime getDeliveryGuaranteed() {
    return deliveryGuaranteed;
}
 
Example #16
Source File: Link.java    From gemfirexd-oss with Apache License 2.0 4 votes vote down vote up
@XmlAttribute(name = METHOD_ATTRIBUTE_NAME, required = false)
public HttpMethod getMethod() {
  return method;
}
 
Example #17
Source File: Policy.java    From knox with Apache License 2.0 4 votes vote down vote up
@XmlAttribute
public String getName() {
  return name;
}
 
Example #18
Source File: CartItemRO.java    From yes-cart with Apache License 2.0 4 votes vote down vote up
@XmlAttribute(name = "not-sold-separately")
public boolean isNotSoldSeparately() {
    return notSoldSeparately;
}
 
Example #19
Source File: JaxbSearch.java    From documentum-rest-client-java with Apache License 2.0 4 votes vote down vote up
@XmlAttribute(name = "include-hidden-objects")
public Boolean getIncludeHiddenObjects() {
    return includeHiddenObjects;
}
 
Example #20
Source File: Bounds.java    From osiris with Apache License 2.0 4 votes vote down vote up
@XmlAttribute
public void setMinlat(String minlat) {
	this.minlat = minlat;
}
 
Example #21
Source File: GUseStyle.java    From niftyeditor with Apache License 2.0 4 votes vote down vote up
@XmlAttribute
public String getFilename() {
    return filename;
}
 
Example #22
Source File: CustomerUpdatedRO.java    From yes-cart with Apache License 2.0 4 votes vote down vote up
@XmlAttribute(name = "success")
public boolean isSuccess() {
    return success;
}
 
Example #23
Source File: UrlMapping.java    From IridiumApplicationTesting with MIT License 4 votes vote down vote up
@XmlAttribute
public String getTags() {
	return tags;
}
 
Example #24
Source File: BoundingBox.java    From geomajas-project-server with GNU Affero General Public License v3.0 4 votes vote down vote up
@XmlAttribute(name = "maxy")
public double getMaxY() {
	return maxY;
}
 
Example #25
Source File: BIProperty.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@XmlAttribute
void setGenerateIsSetMethod(boolean b) {
    optionalProperty = b ? OptionalPropertyMode.ISSET : OptionalPropertyMode.WRAPPER;
}
 
Example #26
Source File: XmlHttpHeader.java    From activemq-artemis with Apache License 2.0 4 votes vote down vote up
@XmlAttribute
public String getName() {
   return name;
}
 
Example #27
Source File: XmlLink.java    From activemq-artemis with Apache License 2.0 4 votes vote down vote up
@XmlAttribute
public String getHref() {
   return href;
}
 
Example #28
Source File: Point.java    From defense-solutions-proofs-of-concept with Apache License 2.0 4 votes vote down vote up
@XmlAttribute
public double getCe() {
	return ce;
}
 
Example #29
Source File: TunerConfiguration.java    From FoxTelem with GNU General Public License v3.0 4 votes vote down vote up
@XmlAttribute( name = "tuner_type" )
public abstract TunerType getTunerType();
 
Example #30
Source File: JaxbProperty.java    From documentum-rest-client-java with Apache License 2.0 4 votes vote down vote up
@Override
@XmlAttribute
public boolean isRequired() {
    return required;
}