public void setDeleted() { addExtension(new Deleted()); // Deleted entries cannot be edited further. setCanEdit(false); }
/** * Returns whether it has the value. * * @return whether it has the value */ public boolean hasValue() { return getValue() != null; }
/** * Returns whether it has the value. * * @return whether it has the value */ public boolean hasValue() { return getValue() != null; }
/** * Initializes an ExtensionProfile based upon the extensions expected * by an MessageEntry. */ @Override public void declareExtensions(ExtensionProfile extProfile) { extProfile.declare(MessageEntry.class, Rating.getDefaultDescription(false)); extProfile.declare(MessageEntry.class, When.getDefaultDescription(false)); extProfile.declare(MessageEntry.class, GeoPt.getDefaultDescription(false)); extProfile.declare(MessageEntry.class, Who.getDefaultDescription()); }
/** * Returns whether it has the department name in organization. * * @return whether it has the department name in organization */ public boolean hasOrgDepartment() { return hasExtension(OrgDepartment.class); }
/** * Returns whether it has the Used in places where houses or buildings have * names. * * @return whether it has the Used in places where houses or buildings have * names */ public boolean hasHousename() { return hasExtension(HouseName.class); }
/** * Returns whether it has the IM address. * * @return whether it has the IM address */ public boolean hasAddress() { return getAddress() != null; }
/** * Sets the im protocol. * * @param protocol im protocol or <code>null</code> to reset */ public void setProtocol(String protocol) { throwExceptionIfImmutable(); this.protocol = protocol; }
/** * Returns whether it has the name suffix. * * @return whether it has the name suffix */ public boolean hasNameSuffix() { return hasExtension(NameSuffix.class); }
public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs) { return new Handler(); }
/** * Sets the ISO4217 currency code. * * @param currencyCode ISO4217 currency code or <code>null</code> to reset */ public void setCurrencyCode(String currencyCode) { throwExceptionIfImmutable(); this.currencyCode = currencyCode; }
/** * Sets the label. * * @param label label or <code>null</code> to reset */ public void setLabel(String label) { throwExceptionIfImmutable(); this.label = label; }
/** * Returns the department name in organization. * * @return department name in organization */ public OrgDepartment getOrgDepartment() { return getExtension(OrgDepartment.class); }
/** * Returns whether it has the organization type. * * @return whether it has the organization type */ public boolean hasRel() { return getRel() != null; }
/** * Initializes an ExtensionProfile based upon the extensions expected * by an MessageEntry. */ @Override public void declareExtensions(ExtensionProfile extProfile) { extProfile.declare(MessageEntry.class, Rating.getDefaultDescription(false)); extProfile.declare(MessageEntry.class, When.getDefaultDescription(false)); extProfile.declare(MessageEntry.class, GeoPt.getDefaultDescription(false)); extProfile.declare(MessageEntry.class, Who.getDefaultDescription()); }
public void setDeleted() { addExtension(new Deleted()); // Deleted entries cannot be edited further. setCanEdit(false); }
/** * Returns whether it has the job description. * * @return whether it has the job description */ public boolean hasOrgJobDescription() { return hasExtension(OrgJobDescription.class); }
/** * Returns whether it has the Postal code. * * @return whether it has the Postal code */ public boolean hasPostcode() { return hasExtension(PostCode.class); }
/** * Initializes an ExtensionProfile based upon the extensions expected * by an MessageEntry. */ @Override public void declareExtensions(ExtensionProfile extProfile) { extProfile.declare(MessageEntry.class, Rating.getDefaultDescription(false)); extProfile.declare(MessageEntry.class, When.getDefaultDescription(false)); extProfile.declare(MessageEntry.class, GeoPt.getDefaultDescription(false)); extProfile.declare(MessageEntry.class, Who.getDefaultDescription()); }
public void setDeleted() { addExtension(new Deleted()); // Deleted entries cannot be edited further. setCanEdit(false); }