/** * Returns the Used in work addresses. Also for 'in care of' or 'c/o'. * * @return Used in work addresses. Also for 'in care of' or 'c/o' */ public Agent getAgent() { return getExtension(Agent.class); }
/** * Returns whether it has the Simple string value used to name this address. * * @return whether it has the Simple string value used to name this address */ public boolean hasLabel() { return getLabel() != null; }
/** * Returns whether it has the The mail class. * * @return whether it has the The mail class */ public boolean hasMailClass() { return getMailClass() != null; }
/** * Immutable constructor. * * @param label Simple string value used to name this address. * @param mailClass The mail class. * @param primary whether this is the primary postal address. * @param rel the postal address type. * @param usage The context for the address use. */ public StructuredPostalAddress(String label, String mailClass, Boolean primary, String rel, String usage) { super(); setLabel(label); setMailClass(mailClass); setPrimary(primary); setRel(rel); setUsage(usage); setImmutable(true); }
while (addressChildrenIterator.hasNext()) { OMElement singleAddress = (OMElement) addressChildrenIterator.next(); StructuredPostalAddress structuredAddress = new StructuredPostalAddress(); OMElement tempAddressElement = singleAddress.getFirstChildWithName(new QName(Constants.CITY)); if (tempAddressElement != null) { structuredAddress.setCity(new City(tempAddressElement.getText())); structuredAddress.setRegion(new Region(tempAddressElement.getText())); structuredAddress.setStreet(new Street(tempAddressElement.getText())); structuredAddress.setCountry(new Country(tempAddressElement.getAttributeValue(new QName( Constants.COUNTRY_CODE)), tempAddressElement.getText())); structuredAddress.setFormattedAddress(new FormattedAddress(tempAddressElement.getText())); structuredAddress.setNeighborhood(new Neighborhood(tempAddressElement.getText())); structuredAddress.setPobox(new PoBox(tempAddressElement.getText())); structuredAddress.setPostcode(new PostCode(tempAddressElement.getText())); structuredAddress.setPrimary(Boolean.valueOf(singleAddress.getAttributeValue(new QName( Constants.PRIMARY)))); structuredAddress.setRel(Constants.REL_OPEN + singleAddress.getLocalName());
extProfile.declare(BasePersonEntry.class, ShortName.class); extProfile.declare(BasePersonEntry.class, StructuredPostalAddress.getDefaultDescription(false, true)); new StructuredPostalAddress().declareExtensions(extProfile); extProfile.declare(BasePersonEntry.class, Subject.class); extProfile.declare(BasePersonEntry.class,
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(FeatureEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(FeatureEntry.class, CustomProperty.getDefaultDescription(false, true)); extProfile.declare(FeatureEntry.class, new ExtensionDescription(Deleted.class, new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "deleted", false, false, false)); extProfile.declare(FeatureEntry.class, new ExtensionDescription(PostalAddress.class, new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "postalAddress", false, false, false)); extProfile.declare(FeatureEntry.class, ResourceId.class); extProfile.declare(FeatureEntry.class, StructuredPostalAddress.class); new StructuredPostalAddress().declareExtensions(extProfile); }
/** * Returns whether it has the the postal address type. * * @return whether it has the the postal address type */ public boolean hasRel() { return getRel() != null; }
/** * Returns whether it has the whether this is the primary postal address. * * @return whether it has the whether this is the primary postal address */ public boolean hasPrimary() { return getPrimary() != null; }
/** * Immutable constructor. * * @param label Simple string value used to name this address. * @param mailClass The mail class. * @param primary whether this is the primary postal address. * @param rel the postal address type. * @param usage The context for the address use. */ public StructuredPostalAddress(String label, String mailClass, Boolean primary, String rel, String usage) { super(); setLabel(label); setMailClass(mailClass); setPrimary(primary); setRel(rel); setUsage(usage); setImmutable(true); }
extProfile.declare(BasePersonEntry.class, ShortName.class); extProfile.declare(BasePersonEntry.class, StructuredPostalAddress.getDefaultDescription(false, true)); new StructuredPostalAddress().declareExtensions(extProfile); extProfile.declare(BasePersonEntry.class, Subject.class); extProfile.declare(BasePersonEntry.class,
extProfile.declare(FeatureEntry.class, ResourceId.class); extProfile.declare(FeatureEntry.class, StructuredPostalAddress.class); new StructuredPostalAddress().declareExtensions(extProfile);
/** * Returns whether it has the the postal address type. * * @return whether it has the the postal address type */ public boolean hasRel() { return getRel() != null; }
/** * Returns whether it has the whether this is the primary postal address. * * @return whether it has the whether this is the primary postal address */ public boolean hasPrimary() { return getPrimary() != null; }
/** * Immutable constructor. * * @param label Simple string value used to name this address. * @param mailClass The mail class. * @param primary whether this is the primary postal address. * @param rel the postal address type. * @param usage The context for the address use. */ public StructuredPostalAddress(String label, String mailClass, Boolean primary, String rel, String usage) { super(); setLabel(label); setMailClass(mailClass); setPrimary(primary); setRel(rel); setUsage(usage); setImmutable(true); }
extProfile.declare(BasePersonEntry.class, Status.class); extProfile.declare(BasePersonEntry.class, StructuredPostalAddress.getDefaultDescription(false, true)); new StructuredPostalAddress().declareExtensions(extProfile); extProfile.declare(BasePersonEntry.class, Subject.class); extProfile.declare(BasePersonEntry.class,
/** * Returns the Can be city, village, town, borough, etc. * * @return Can be city, village, town, borough, etc */ public City getCity() { return getExtension(City.class); }
/** * Returns whether it has the the postal address type. * * @return whether it has the the postal address type */ public boolean hasRel() { return getRel() != null; }
/** * Returns whether it has the Simple string value used to name this address. * * @return whether it has the Simple string value used to name this address */ public boolean hasLabel() { return getLabel() != null; }
/** * Returns whether it has the whether this is the primary postal address. * * @return whether it has the whether this is the primary postal address */ public boolean hasPrimary() { return getPrimary() != null; }