/** * Returns the department name in organization. * * @return department name in organization */ public OrgDepartment getOrgDepartment() { return getExtension(OrgDepartment.class); }
/** * Returns whether it has the label. * * @return whether it has the label */ public boolean hasLabel() { return getLabel() != null; }
/** * Returns whether it has the whether this is the primary organization. * * @return whether it has the whether this is the primary organization */ public boolean hasPrimary() { return getPrimary() != null; }
/** * Sets the office location. * * @param where office location or <code>null</code> to reset */ public void setWhere(Where where) { if (where == null) { removeExtension(Where.class); } else { setExtension(where); } }
extProfile.declare(BasePersonEntry.class, Occupation.class); extProfile.declare(BasePersonEntry.class, Organization.getDefaultDescription(false, true)); new Organization().declareExtensions(extProfile); extProfile.declare(BasePersonEntry.class, new ExtensionDescription(PhoneNumber.class, new XmlNamespace("gd",
/** * 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); }
/** * Initializes an ExtensionProfile based upon the extensions expected * by an ContactEntry. */ @Override public void declareExtensions(ExtensionProfile extProfile) { extProfile.declare(ContactEntry.class, Email.getDefaultDescription()); extProfile.declare(ContactEntry.class, Im.getDefaultDescription(false, true)); extProfile.declare(ContactEntry.class, PhoneNumber.getDefaultDescription()); extProfile.declare(ContactEntry.class, PostalAddress.getDefaultDescription()); extProfile.declare(ContactEntry.class, Organization.getDefaultDescription(false, false)); extProfile.declare(ContactEntry.class, GeoPt.getDefaultDescription()); extProfile.declare(ContactEntry.class, Deleted.class); }
/** * Returns whether it has the organization type. * * @return whether it has the organization type */ public boolean hasRel() { return getRel() != null; }
/** * Sets the job description. * * @param orgJobDescription job description or <code>null</code> to reset */ public void setOrgJobDescription(OrgJobDescription orgJobDescription) { if (orgJobDescription == null) { removeExtension(OrgJobDescription.class); } else { setExtension(orgJobDescription); } }
extProfile.declare(BasePersonEntry.class, Occupation.class); extProfile.declare(BasePersonEntry.class, Organization.getDefaultDescription(false, true)); new Organization().declareExtensions(extProfile); extProfile.declare(BasePersonEntry.class, new ExtensionDescription(PhoneNumber.class, new XmlNamespace("gd",
/** * Returns whether it has the job description. * * @return whether it has the job description */ public boolean hasOrgJobDescription() { return hasExtension(OrgJobDescription.class); }
/** * Initializes an ExtensionProfile based upon the extensions expected * by an ContactEntry. */ @Override public void declareExtensions(ExtensionProfile extProfile) { extProfile.declare(ContactEntry.class, Email.getDefaultDescription()); extProfile.declare(ContactEntry.class, Im.getDefaultDescription(false, true)); extProfile.declare(ContactEntry.class, PhoneNumber.getDefaultDescription()); extProfile.declare(ContactEntry.class, PostalAddress.getDefaultDescription()); extProfile.declare(ContactEntry.class, Organization.getDefaultDescription(false, false)); extProfile.declare(ContactEntry.class, GeoPt.getDefaultDescription()); extProfile.declare(ContactEntry.class, Deleted.class); }
/** * Returns whether it has the organization type. * * @return whether it has the organization type */ public boolean hasRel() { return getRel() != null; }
/** * Sets the name of organization. * * @param orgName name of organization or <code>null</code> to reset */ public void setOrgName(OrgName orgName) { if (orgName == null) { removeExtension(OrgName.class); } else { setExtension(orgName); } }
extProfile.declare(BasePersonEntry.class, Occupation.class); extProfile.declare(BasePersonEntry.class, Organization.getDefaultDescription(false, true)); new Organization().declareExtensions(extProfile); extProfile.declare(BasePersonEntry.class, new ExtensionDescription(PhoneNumber.class, new XmlNamespace("gd",
/** * Returns the office location. * * @return office location */ public Where getWhere() { return getExtension(Where.class); }
/** * Returns whether it has the name of organization. * * @return whether it has the name of organization */ public boolean hasOrgName() { return hasExtension(OrgName.class); }
/** * Initializes an ExtensionProfile based upon the extensions expected * by an ContactEntry. */ @Override public void declareExtensions(ExtensionProfile extProfile) { extProfile.declare(ContactEntry.class, Email.getDefaultDescription()); extProfile.declare(ContactEntry.class, Im.getDefaultDescription(false, true)); extProfile.declare(ContactEntry.class, PhoneNumber.getDefaultDescription()); extProfile.declare(ContactEntry.class, PostalAddress.getDefaultDescription()); extProfile.declare(ContactEntry.class, Organization.getDefaultDescription(false, false)); extProfile.declare(ContactEntry.class, GeoPt.getDefaultDescription()); extProfile.declare(ContactEntry.class, Deleted.class); }
/** * Returns whether it has the organization type. * * @return whether it has the organization type */ public boolean hasRel() { return getRel() != null; }
/** * Returns whether it has the whether this is the primary organization. * * @return whether it has the whether this is the primary organization */ public boolean hasPrimary() { return getPrimary() != null; }