@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoRotation other = (GphotoRotation) obj; return eq(value, other.value); }
/** * Returns whether it has the rotation in degrees. * * @return whether it has the rotation in degrees */ public boolean hasValue() { return getValue() != null; }
/** * Immutable constructor. * * @param value rotation in degrees. */ public GphotoRotation(Integer value) { super(); setValue(value); setImmutable(true); }
public void setRotation(Integer rotation) { GphotoRotation ext = null; if (rotation != null) { ext = new GphotoRotation(rotation); } setRotationExt(ext); }
/** * Sets the rotation in degrees. * * @param value rotation in degrees or <code>null</code> to reset */ public void setValue(Integer value) { throwExceptionIfImmutable(); this.value = value; }
@Override @SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, PheedThumbnail.getDefaultDescription()); declare(extProfile, PheedImageUrl.getDefaultDescription()); declare(extProfile, GphotoVersion.getDefaultDescription(false, false)); declare(extProfile, GphotoPosition.getDefaultDescription(false, false)); declare(extProfile, GphotoWidth.getDefaultDescription(false, false)); declare(extProfile, GphotoHeight.getDefaultDescription(false, false)); declare(extProfile, GphotoRotation.getDefaultDescription(false, false)); declare(extProfile, GphotoSize.getDefaultDescription(false, false)); declare(extProfile, GphotoAlbumId.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoClient.getDefaultDescription(false, false)); declare(extProfile, GphotoChecksum.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoStreamId.getDefaultDescription(false, false)); declare(extProfile, GphotoVideoStatus.getDefaultDescription(false, false)); declare(extProfile, ExifTags.getDefaultDescription()); new ExifTags().declareExtensions(extProfile); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
public void setRotation(Integer rotation) { GphotoRotation ext = null; if (rotation != null) { ext = new GphotoRotation(rotation); } setRotationExt(ext); }
/** * Sets the rotation in degrees. * * @param value rotation in degrees or <code>null</code> to reset */ public void setValue(Integer value) { throwExceptionIfImmutable(); this.value = value; }
@Override @SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, PheedThumbnail.getDefaultDescription()); declare(extProfile, PheedImageUrl.getDefaultDescription()); declare(extProfile, GphotoVersion.getDefaultDescription(false, false)); declare(extProfile, GphotoPosition.getDefaultDescription(false, false)); declare(extProfile, GphotoWidth.getDefaultDescription(false, false)); declare(extProfile, GphotoHeight.getDefaultDescription(false, false)); declare(extProfile, GphotoRotation.getDefaultDescription(false, false)); declare(extProfile, GphotoSize.getDefaultDescription(false, false)); declare(extProfile, GphotoAlbumId.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoClient.getDefaultDescription(false, false)); declare(extProfile, GphotoChecksum.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoStreamId.getDefaultDescription(false, false)); declare(extProfile, GphotoVideoStatus.getDefaultDescription(false, false)); declare(extProfile, ExifTags.getDefaultDescription()); new ExifTags().declareExtensions(extProfile); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
/** * Immutable constructor. * * @param value rotation in degrees. */ public GphotoRotation(Integer value) { super(); setValue(value); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoRotation other = (GphotoRotation) obj; return eq(value, other.value); }
/** * Returns whether it has the rotation in degrees. * * @return whether it has the rotation in degrees */ public boolean hasValue() { return getValue() != null; }
/** * Set the rotation in degrees of the photo. * * @param rotation the rotation of the photo. */ public void setRotation(Integer rotation) { if (rotation != null) { setExtension(new GphotoRotation(rotation)); } else { removeExtension(GphotoRotation.class); } }
/** * @return the gphoto:rotation of the photo. */ public Integer getRotation() { GphotoRotation ext = getExtension(GphotoRotation.class); return ext == null ? null : ext.getValue(); }
/** * Set the rotation in degrees of the photo. * * @param rotation the rotation of the photo. */ public void setRotation(Integer rotation) { if (rotation != null) { setExtension(new GphotoRotation(rotation)); } else { removeExtension(GphotoRotation.class); } }
/** * @throws ServiceException no longer, but used to. */ public Integer getRotation() throws ServiceException { GphotoRotation ext = getRotationExt(); return ext == null ? null : ext.getValue(); }
/** * @throws ServiceException no longer, but used to. */ public Integer getRotation() throws ServiceException { GphotoRotation ext = getRotationExt(); return ext == null ? null : ext.getValue(); }
/** * @return the gphoto:rotation of the photo. */ public Integer getRotation() { GphotoRotation ext = getExtension(GphotoRotation.class); return ext == null ? null : ext.getValue(); }