/** * Immutable constructor. * * @param address IM address. * @param label label. * @param primary whether this is the primary instant messaging address. * @param protocol im protocol. * @param rel im type. */ public Im(String address, String label, Boolean primary, String protocol, String rel) { super(); setAddress(address); setLabel(label); setPrimary(primary); setProtocol(protocol); setRel(rel); setImmutable(true); }
/** * Returns whether it has the IM address. * * @return whether it has the IM address */ public boolean hasAddress() { return getAddress() != null; }
while (iMIterator.hasNext()) { OMElement singleIMElement = (OMElement) iMIterator.next(); Im im = new Im(); OMElement tempElement = singleIMElement.getFirstChildWithName(new QName(Constants.ADDRESS)); if (tempElement != null) { im.setAddress(tempElement.getText()); im.setProtocol(Constants.REL_OPEN + tempElement.getText()); im.setRel(Constants.REL_OPEN + singleIMElement.getLocalName()); if (singleIMElement.getAttributeValue(new QName(Constants.PRIMARY)) != null) { im.setPrimary(Boolean.valueOf(singleIMElement.getAttributeValue(new QName(Constants.PRIMARY))));
/** * Returns whether it has the im protocol. * * @return whether it has the im protocol */ public boolean hasProtocol() { return getProtocol() != null; }
/** * 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 instant messaging * address. * * @return whether it has the whether this is the primary instant messaging * address */ public boolean hasPrimary() { return getPrimary() != null; }
extProfile.declare(BasePersonEntry.class, Hobby.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, Im.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, Initials.class);
/** * Returns whether it has the im protocol. * * @return whether it has the im protocol */ public boolean hasProtocol() { return getProtocol() != null; }
/** * 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 instant messaging * address. * * @return whether it has the whether this is the primary instant messaging * address */ public boolean hasPrimary() { return getPrimary() != null; }
extProfile.declare(BasePersonEntry.class, Hobby.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, Im.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, Initials.class);
/** * Immutable constructor. * * @param address IM address. * @param label label. * @param primary whether this is the primary instant messaging address. * @param protocol im protocol. * @param rel im type. */ public Im(String address, String label, Boolean primary, String protocol, String rel) { super(); setAddress(address); setLabel(label); setPrimary(primary); setProtocol(protocol); setRel(rel); setImmutable(true); }
/** * Returns whether it has the im protocol. * * @return whether it has the im protocol */ public boolean hasProtocol() { return getProtocol() != null; }
/** * Returns whether it has the IM address. * * @return whether it has the IM address */ public boolean hasAddress() { return getAddress() != null; }
/** * 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 instant messaging * address. * * @return whether it has the whether this is the primary instant messaging * address */ public boolean hasPrimary() { return getPrimary() != null; }
extProfile.declare(BasePersonEntry.class, Hobby.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, Im.getDefaultDescription(false, true)); extProfile.declare(BasePersonEntry.class, Initials.class);
/** * Immutable constructor. * * @param address IM address. * @param label label. * @param primary whether this is the primary instant messaging address. * @param protocol im protocol. * @param rel im type. */ public Im(String address, String label, Boolean primary, String protocol, String rel) { super(); setAddress(address); setLabel(label); setPrimary(primary); setProtocol(protocol); setRel(rel); setImmutable(true); }