public void setWeight(Integer weight) { if (weight != null) { setExtension(new GphotoWeight(weight)); } else { removeExtension(GphotoWeight.class); } } }
public Integer getWeight() { GphotoWeight ext = getExtension(GphotoWeight.class); return ext == null ? null : ext.getValue(); }
@Override public void declareExtensions(ExtensionProfile extProfile) { declare(extProfile, GphotoWeight.getDefaultDescription(false, false)); }
public Integer getWeight() { GphotoWeight ext = getExtension(GphotoWeight.class); return ext == null ? null : ext.getValue(); }
@Override public void declareExtensions(ExtensionProfile extProfile) { declare(extProfile, GphotoWeight.getDefaultDescription(false, false)); }
public void setWeight(Integer weight) { if (weight != null) { setExtension(new GphotoWeight(weight)); } else { removeExtension(GphotoWeight.class); } } }