javax.xml.bind.annotation.XmlSchemaType Java Examples
The following examples show how to use
javax.xml.bind.annotation.XmlSchemaType.
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: Util.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #2
Source File: Util.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #3
Source File: PropertyType.java From sis with Apache License 2.0 | 5 votes |
/** * A URI reference for some description of the arc role. * * @return the current value, or {@code null} if none. * @category xlink */ @XmlSchemaType(name = "anyURI") @XmlAttribute(name = "arcrole", namespace = Namespaces.XLINK) public final String getArcRole() { final XLink link = xlink(false); return (link != null) ? toString(link.getArcRole()) : null; }
Example #4
Source File: AbstractParameterDescriptor.java From sis with Apache License 2.0 | 5 votes |
/** * Invoked by JAXB for marshalling the {@link #minimumOccurs} value. Omit marshalling of this * {@code gml:minimumOccurs} element if its value is equals to the default value, which is 1. */ @XmlElement(name = "minimumOccurs") @XmlSchemaType(name = "nonNegativeInteger") private Integer getNonDefaultMinimumOccurs() { final int n = getMinimumOccurs(); return (n != DEFAULT_OCCURRENCE) ? n : null; }
Example #5
Source File: DefaultTemporalDatum.java From sis with Apache License 2.0 | 5 votes |
/** * Returns the date and time origin of this temporal datum. * * @return the date and time origin of this temporal datum. */ @Override @XmlSchemaType(name = "dateTime") @XmlElement(name = "origin", required = true) @XmlJavaTypeAdapter(UniversalTimeAdapter.class) public Date getOrigin() { return MetadataUtilities.toDate(origin); }
Example #6
Source File: PropertyType.java From sis with Apache License 2.0 | 5 votes |
/** * A URI reference for some description of the arc role. * * @return the current value, or {@code null} if none. * @category xlink */ @XmlSchemaType(name = "anyURI") @XmlAttribute(name = "role", namespace = Namespaces.XLINK) public final String getRole() { final XLink link = xlink(false); return (link != null) ? toString(link.getRole()) : null; }
Example #7
Source File: ISOMetadata.java From sis with Apache License 2.0 | 5 votes |
/** * Returns an identifier unique for the XML document, or {@code null} if none. * This method is invoked automatically by JAXB and should never be invoked explicitly. */ @XmlID @XmlAttribute // Defined in "gco" as unqualified attribute. @XmlSchemaType(name = "ID") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) private String getID() { return isNullOrEmpty(identifiers) ? null : MetadataUtilities.getObjectID(this); }
Example #8
Source File: DefaultRepresentativeFraction.java From sis with Apache License 2.0 | 5 votes |
/** * Invoked by JAXB for fetching the unique identifier unique for the XML document. * * @see org.apache.sis.metadata.iso.ISOMetadata#getID() */ @XmlID @XmlAttribute // Defined in "gco" as unqualified attribute. @XmlSchemaType(name = "ID") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) private String getID() { return isNullOrEmpty(identifiers) ? null : MetadataUtilities.getObjectID(this); }
Example #9
Source File: Util.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #10
Source File: Util.java From hottub with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #11
Source File: Util.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #12
Source File: Util.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #13
Source File: Util.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #14
Source File: Util.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
Example #15
Source File: XmlSchemaTypeQuick.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected Quick newInstance(Locatable upstream, Annotation core) { return new XmlSchemaTypeQuick(upstream, ((XmlSchemaType) core)); }
Example #16
Source File: XmlSchemaTypeQuick.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected Quick newInstance(Locatable upstream, Annotation core) { return new XmlSchemaTypeQuick(upstream, ((XmlSchemaType) core)); }
Example #17
Source File: XmlSchemaTypeQuick.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public XmlSchemaTypeQuick(Locatable upstream, XmlSchemaType core) { super(upstream); this.core = core; }
Example #18
Source File: XmlSchemaTypeQuick.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public Class<XmlSchemaType> annotationType() { return XmlSchemaType.class; }
Example #19
Source File: XmlSchemaTypeQuick.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public XmlSchemaTypeQuick(Locatable upstream, XmlSchemaType core) { super(upstream); this.core = core; }
Example #20
Source File: GO_Real.java From sis with Apache License 2.0 | 4 votes |
/** * Invoked by JAXB at marshalling time for getting the actual value to write. * * @return the value to be marshalled. */ @XmlElement(name = "Real") @XmlSchemaType(name = "double") public final Double getElement() { return metadata; }
Example #21
Source File: GO_Integer64.java From sis with Apache License 2.0 | 4 votes |
/** * Invoked by JAXB at marshalling time for getting the actual value to write. * * @return the value to be marshalled. */ @XmlElement(name = "Integer") @XmlSchemaType(name = "integer") public Long getElement() { return metadata; }
Example #22
Source File: XmlSchemaTypeQuick.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public Class<XmlSchemaType> annotationType() { return XmlSchemaType.class; }
Example #23
Source File: XmlSchemaTypeQuick.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
protected Quick newInstance(Locatable upstream, Annotation core) { return new XmlSchemaTypeQuick(upstream, ((XmlSchemaType) core)); }
Example #24
Source File: VisualLayoutTO.java From openAGV with Apache License 2.0 | 4 votes |
@XmlAttribute(required = true) @XmlSchemaType(name = "unsignedInt") public Long getRedValue() { return redValue; }
Example #25
Source File: GO_Boolean.java From sis with Apache License 2.0 | 4 votes |
/** * Invoked by JAXB at marshalling time for getting the actual value to write. * * @return the value to be marshalled. */ @XmlElement(name = "Boolean") @XmlSchemaType(name = "boolean") public Boolean getElement() { return metadata; }
Example #26
Source File: AnnotatedBatchView.java From proarc with GNU General Public License v3.0 | 4 votes |
@XmlSchemaType(name = "dateTime") @XmlElement(name = ImportResourceApi.IMPORT_BATCH_TIMESTAMP) @Override public abstract Timestamp getTimestamp();
Example #27
Source File: XmlSchemaTypeQuick.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public Class<XmlSchemaType> annotationType() { return XmlSchemaType.class; }
Example #28
Source File: XmlSchemaTypeQuick.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
protected Quick newInstance(Locatable upstream, Annotation core) { return new XmlSchemaTypeQuick(upstream, ((XmlSchemaType) core)); }
Example #29
Source File: GO_Integer.java From sis with Apache License 2.0 | 4 votes |
/** * Invoked by JAXB at marshalling time for getting the actual value to write. * * @return the value to be marshalled. */ @XmlElement(name = "Integer") @XmlSchemaType(name = "integer") public final Integer getElement() { return metadata; }
Example #30
Source File: XmlSchemaTypeQuick.java From hottub with GNU General Public License v2.0 | 4 votes |
public XmlSchemaTypeQuick(Locatable upstream, XmlSchemaType core) { super(upstream); this.core = core; }