/** * Getter for administererTitle. * * @return value for administererTitle */ @XmlElement public String getAdministererTitle() { if (expandLevel > 0) { String title = entity.getAdministererTitle(); if (title != null) return title.toLowerCase(); } return null; }
/** * Getter for administerer. * * @return value for administerer */ @XmlElement public String getAdministerer() { if (expandLevel > 0) { String admin = entity.getAdministerer(); if (admin != null) return admin.toLowerCase(); } return null; }
/** * Returns the CcrImmunization entity. * * @return an entity */ @XmlTransient public CcrImmunization getEntity() { if (entity.getId() == null) { CcrImmunizationConverter converter = UriResolver.getInstance().resolve(CcrImmunizationConverter.class, uri); if (converter != null) { entity = converter.getEntity(); } } return entity; }
/** * Getter for productName. * * @return value for productName */ @XmlElement public String getProductName() { return (expandLevel > 0) ? entity.getProductName() : null; }
/** * Getter for id. * * @return value for id */ @XmlElement public Long getId() { return (expandLevel > 0) ? entity.getId() : null; }
/** * Creates a new instance of CcrImmunizationConverter. * * @param entity associated entity * @param uri associated uri * @param expandLevel indicates the number of levels the entity graph should be expanded@param * isUriExtendable indicates whether the uri can be extended */ public CcrImmunizationConverter( CcrImmunization entity, URI uri, int expandLevel, boolean isUriExtendable) { this.entity = entity; this.uri = (isUriExtendable) ? UriBuilder.fromUri(uri).path(entity.getId() + "/").build() : uri; this.expandLevel = expandLevel; }
/** * Getter for exactDateTime. * * @return value for exactDateTime */ @XmlElement @XmlJavaTypeAdapter(DateAdapter.class) public Date getExactDateTime() { return (expandLevel > 0) ? entity.getExactDateTime() : null; }
/** * Getter for source. * * @return value for source */ @XmlElement public String getSource() { return (expandLevel > 0) ? entity.getSource() : null; }