javax.xml.bind.annotation.XmlTransient Java Examples

The following examples show how to use javax.xml.bind.annotation.XmlTransient. 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: SourceLocationAddOn.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public boolean run(
    Outline outline,
    Options opt,
    ErrorHandler errorHandler ) {

    for( ClassOutline ci : outline.getClasses() ) {
        JDefinedClass impl = ci.implClass;
        if (ci.getSuperClass() == null) {
            JVar $loc = impl.field(JMod.PROTECTED, Locator.class, fieldName);
            $loc.annotate(XmlLocation.class);
            $loc.annotate(XmlTransient.class);

            impl._implements(Locatable.class);

            impl.method(JMod.PUBLIC, Locator.class, "sourceLocation").body()._return($loc);

            JMethod setter = impl.method(JMod.PUBLIC, Void.TYPE, "setSourceLocation");
            JVar $newLoc = setter.param(Locator.class, "newLocator");
            setter.body().assign($loc, $newLoc);
        }
    }

    return true;
}
 
Example #2
Source File: SOAPFaultBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public @XmlTransient @Nullable QName getFirstDetailEntryName() {
    DetailType dt = getDetail();
    if (dt != null) {
        Node entry = dt.getDetail(0);
        if (entry != null) {
            return new QName(entry.getNamespaceURI(), entry.getLocalName());
        }
    }
    return null;
}
 
Example #3
Source File: User.java    From aws-photosharing-example with Apache License 2.0 5 votes vote down vote up
@XmlTransient
 @LazyCollection(LazyCollectionOption.EXTRA)
 @ManyToMany(fetch=FetchType.LAZY, cascade=CascadeType.ALL)
 @JoinTable(name = "role_mappings", joinColumns = { 
@JoinColumn(name = "user_id", nullable = false, updatable = false) }, 
inverseJoinColumns = { @JoinColumn(name = "role", 
		nullable = false, updatable = false) })
 public List<Role> getRoles() {return _roles;}
 
Example #4
Source File: SOAPFaultBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public @XmlTransient @Nullable QName getFirstDetailEntryName() {
    DetailType dt = getDetail();
    if (dt != null) {
        Node entry = dt.getDetail(0);
        if (entry != null) {
            return new QName(entry.getNamespaceURI(), entry.getLocalName());
        }
    }
    return null;
}
 
Example #5
Source File: BundleVersion.java    From nifi-registry with Apache License 2.0 5 votes vote down vote up
@XmlTransient
public String getFilename() {
    final String filename = bundle.getArtifactId() + "-" + versionMetadata.getVersion();

    switch (bundle.getBundleType()) {
        case NIFI_NAR:
            return filename + ".nar";
        case MINIFI_CPP:
            // TODO should CPP get a special extension
            return filename;
        default:
            throw new IllegalStateException("Unknown bundle type: " + bundle.getBundleType());
    }
}
 
Example #6
Source File: LibraryImportResult.java    From sailfish-core with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public Library getLibrary() {
	return library;
}
 
Example #7
Source File: Employee.java    From marathonv5 with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public Collection<ProjectedSales> getProjectedSalesCollection() {
    return projectedSalesCollection;
}
 
Example #8
Source File: Employee.java    From marathonv5 with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public Collection<SalesOrder> getSalesOrderCollection() {
    return salesOrderCollection;
}
 
Example #9
Source File: User.java    From aws-photosharing-example with Apache License 2.0 4 votes vote down vote up
@XmlTransient
@Column(nullable = false)
public String getPassword() {return password;}
 
Example #10
Source File: Address.java    From marathonv5 with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public Collection<Dealer> getDealerCollection() {
    return dealerCollection;
}
 
Example #11
Source File: Address.java    From marathonv5 with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public Collection<Employee> getEmployeeCollection() {
    return employeeCollection;
}
 
Example #12
Source File: XmlTransientQuick.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public XmlTransientQuick(Locatable upstream, XmlTransient core) {
    super(upstream);
    this.core = core;
}
 
Example #13
Source File: Region.java    From marathonv5 with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public Collection<DailySales> getDailySalesCollection() {
    return dailySalesCollection;
}
 
Example #14
Source File: Product.java    From marathonv5 with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public Collection<DailySales> getDailySalesCollection() {
    return dailySalesCollection;
}
 
Example #15
Source File: TestEndpoint.java    From quarkus with Apache License 2.0 4 votes vote down vote up
private void ensureFieldSanitized(String fieldName) throws Exception {
    Field f = JAXBEntity.class.getField(fieldName);
    assertNull(f.getAnnotation(XmlAttribute.class));
    assertNotNull(f.getAnnotation(XmlTransient.class));
}
 
Example #16
Source File: ApiResponseMessage.java    From swaggy-jenkins with MIT License 4 votes vote down vote up
@XmlTransient
public int getCode() {
    return code;
}
 
Example #17
Source File: User.java    From aws-photosharing-example with Apache License 2.0 4 votes vote down vote up
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Album> getAlbums() {return albums;}
 
Example #18
Source File: Heartbeat.java    From localization_nifi with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public long getCreatedTimestamp() {
    return createdTimestamp;
}
 
Example #19
Source File: HDFSListing.java    From localization_nifi with Apache License 2.0 4 votes vote down vote up
/**
 * @return a Collection containing the paths of all files in the HDFS Listing whose Modification date
 * was equal to {@link #getLatestTimestamp()}
 */
@XmlTransient
public Collection<String> getMatchingPaths() {
    return matchingPaths;
}
 
Example #20
Source File: ApiResponse.java    From microprofile-open-api with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public int getCode() {
    return code;
}
 
Example #21
Source File: User.java    From aws-photosharing-example with Apache License 2.0 4 votes vote down vote up
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Media> getMedia() {return media;}
 
Example #22
Source File: Action.java    From recheck with GNU Affero General Public License v3.0 4 votes vote down vote up
@XmlTransient
void setWindowsScreenshots( Screenshot[] windowsScreenshots );
 
Example #23
Source File: ApiResponseMessage.java    From exo-demo with MIT License 4 votes vote down vote up
@XmlTransient
public int getCode() {
    return code;
}
 
Example #24
Source File: ApiResponseMessage.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public int getCode() {
    return code;
}
 
Example #25
Source File: Product.java    From marathonv5 with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public Collection<SalesOrderLine> getSalesOrderLineCollection() {
    return salesOrderLineCollection;
}
 
Example #26
Source File: ApiResponseMessage.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public int getCode() {
    return code;
}
 
Example #27
Source File: ApiResponseMessage.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public int getCode() {
    return code;
}
 
Example #28
Source File: ProductType.java    From marathonv5 with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public Collection<Product> getProductCollection() {
    return productCollection;
}
 
Example #29
Source File: ClassInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Checks if the properties in this given super class should be aggregated into this class.
 */
private boolean shouldRecurseSuperClass(C sc) {
    return sc!=null
        && (builder.isReplaced(sc) || reader().hasClassAnnotation(sc, XmlTransient.class));
}
 
Example #30
Source File: ApiResponseMessage.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@XmlTransient
public int getCode() {
    return code;
}