/** * Constructs a new Entry instance. */ public GphotoEntry() { super(); this.delegate = new GphotoDataImpl(this); }
/** * @return the Gphoto id. */ public String getGphotoId() { return getSimpleValue(GphotoId.class); }
/** * Sets the id of this entry. */ public void setGphotoId(Long id) { if (id != null) { setExtension(GphotoId.from(id)); } else { removeExtension(GphotoId.class); } }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoThumbnail.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaLimit.getDefaultDescription(false, false)); declare(extProfile, GphotoMaxPhotos.getDefaultDescription(false, false)); }
/** * Protected helper to get the simple value from a construct extension. */ protected String getSimpleValue(Class<? extends ValueConstruct> extClass) { ValueConstruct construct = getExtension(extClass); return construct == null ? null : construct.getValue(); }
@SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { declare(extProfile, GphotoId.getDefaultDescription(false, false)); declare(extProfile, GphotoType.getDefaultDescription(false, false)); extProfile.declareArbitraryXmlExtension(extClass); // Declare that the person extension point can have user, nick, or thumb. extProfile.declare(Person.class, GphotoUsername.getDefaultDescription(false, false)); extProfile.declare(Person.class, GphotoNickname.getDefaultDescription(false, false)); extProfile.declare(Person.class, GphotoThumbnail.getDefaultDescription(false, false)); }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoThumbnail.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaLimit.getDefaultDescription(false, false)); declare(extProfile, GphotoMaxPhotos.getDefaultDescription(false, false)); }
/** * Protected helper to get the simple value from a construct extension. */ protected String getSimpleValue(Class<? extends ValueConstruct> extClass) { ValueConstruct construct = getExtension(extClass); return construct == null ? null : construct.getValue(); }
@SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { declare(extProfile, GphotoId.getDefaultDescription(false, false)); declare(extProfile, GphotoType.getDefaultDescription(false, false)); extProfile.declareArbitraryXmlExtension(extClass); // Declare that the person extension point can have user, nick, or thumb. extProfile.declare(Person.class, GphotoUsername.getDefaultDescription(false, false)); extProfile.declare(Person.class, GphotoNickname.getDefaultDescription(false, false)); extProfile.declare(Person.class, GphotoThumbnail.getDefaultDescription(false, false)); }
/** * Sets the id of this entry. */ public void setGphotoId(String id) { if (id != null) { setExtension(new GphotoId(id)); } else { removeExtension(GphotoId.class); } }
/** * Construct a new {@code GphotoFeed} instance parameterized to contain the * given {@code GphotoEntry} type. This should be used by subclasses to set up * subclassed entry types as needed. */ protected GphotoFeed(Class<? extends GphotoEntry> entryClass) { super(entryClass); this.delegate = new GphotoDataImpl(this); }
@Override @SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, PheedThumbnail.getDefaultDescription()); declare(extProfile, PheedImageUrl.getDefaultDescription()); declare(extProfile, GphotoName.getDefaultDescription(false, false)); declare(extProfile, GphotoLocation.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosLeft.getDefaultDescription(false, false)); declare(extProfile, GphotoBytesUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
/** * @return the Gphoto id. */ public String getGphotoId() { return getSimpleValue(GphotoId.class); }
/** * Sets the id of this entry. */ public void setGphotoId(Long id) { if (id != null) { setExtension(GphotoId.from(id)); } else { removeExtension(GphotoId.class); } }
/** * Construct a new {@code GphotoFeed} instance parameterized to contain the * given {@code GphotoEntry} type. This should be used by subclasses to set up * subclassed entry types as needed. */ protected GphotoFeed(Class<? extends GphotoEntry> entryClass) { super(entryClass); this.delegate = new GphotoDataImpl(this); }
@Override @SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, PheedThumbnail.getDefaultDescription()); declare(extProfile, PheedImageUrl.getDefaultDescription()); declare(extProfile, GphotoName.getDefaultDescription(false, false)); declare(extProfile, GphotoLocation.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosLeft.getDefaultDescription(false, false)); declare(extProfile, GphotoBytesUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
/** * Sets the id of this entry. */ public void setGphotoId(String id) { if (id != null) { setExtension(new GphotoId(id)); } else { removeExtension(GphotoId.class); } }
/** * Construct a new {@code GphotoFeed} instance parameterized to contain the * given {@code GphotoEntry} subclass. The base state of the feed will be * drawn from the passed in {@code BaseFeed} instance. This constructor should * be used by subclasses to change the entry type supported by the feed. */ protected GphotoFeed(Class<? extends GphotoEntry> entryClass, BaseFeed sourceFeed) { super(entryClass, sourceFeed); this.delegate = new GphotoDataImpl(this); }
@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); }
/** * Construct a new {@code GphotoFeed} instance parameterized to contain the * given {@code GphotoEntry} subclass. The base state of the feed will be * drawn from the passed in {@code BaseFeed} instance. This constructor should * be used by subclasses to change the entry type supported by the feed. */ protected GphotoFeed(Class<? extends GphotoEntry> entryClass, BaseFeed sourceFeed) { super(entryClass, sourceFeed); this.delegate = new GphotoDataImpl(this); }