/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: IDPPAddressCard.java,v 1.2 2008/06/25 05:47:15 qcheng Exp $
*
*/
/**
* This class <code>IDPPAddressCard</code> is an implementation of
* <code>IDPPContainer</code>.
*/
/**
* Constructor
*/
public IDPPAddressCard() {
}
/**
* Gets the container object i.e. LegalIdentity JAXB Object
* @param userMap user map
* @return LegalIdentityElement JAXB Object.
* @exception IDPPException.
*/
try {
throw new IDPPException(
}
}
}
return ppType;
} catch (JAXBException je) {
"IDPPContainers:getContainerObject: JAXB failure", je);
throw new IDPPException(
}
}
/**
* Parses the entry and creates an address card element from the given map
*/
throws JAXBException {
return null;
}
" Entry " + entry);
return null;
}
while(st.hasMoreTokens()) {
continue;
}
continue;
}
} else {
}
continue;
}
postalCode = value;
}
}
" has no AddrType " + entry);
return null;
}
return ace;
}
/**
* Gets required common name container attributes.
*
* @return Set set of required container attributes
*/
return getMapperAttributeSet(set);
}
/**
* Sets the container attributes for a given select expression.
* @param select Select Expression.
* @return Set set of required user attributes.
*/
"ForSelect:Init");
}
return getContainerAttributes();
}
/**
* modified.
* @param select select expression
* @param data list of new data objects.
* @return Attribute key value pair for the given select.
* @exception IDPPException.
*/
throws IDPPException {
"exp context = " + expContext);
}
return map ;
}
} else {
}
}
}
return map;
}
/**
* Gets the modifiable map for the expression context from the given
* data element.
* @param expContext Given select expression context.
* @param dataElement DataElement.
* @return Map Modifiable attribute value pair.
* @exception IDPPException.
*/
throws IDPPException {
"AddressType=" + addressType);
}
if(addressType != null) {
}
}
if(dataElement == null) {
if(addressType == null) {
// There is no data and no specific address type, so remove all
return removeMap;
} else {
return setAddressMap(tmpMap);
}
} else if(dataElement instanceof AddressCardElement) {
}
}
"AddressType= " + addressType);
}
} else {
}
throw new IDPPException(
}
" to be modified." + entry);
}
return setAddressMap(tmpMap);
} else {
throw new IDPPException(
}
if(dataElement == null) {
} else if(dataElement instanceof DSTString) {
} else {
throw new IDPPException(
}
if(dataElement == null) {
} else if(dataElement instanceof AddressElement) {
} else {
throw new IDPPException(
}
}
return setAddressMap(tmpMap);
}
/**
* Modifies the entry in the existing map with a given value.
*/
while(st.hasMoreTokens()) {
}
}
} else {
}
}
}
/**
* Create a new address card.
*/
"Address Element is null");
return null;
}
}
}
}
}
/**
* Creates an address
*/
if(postalAddress != null) {
.append("|");
}
}
}
if(postalCode != null) {
}
}
}
/**
* Modifies the address entry.
*/
while(st.hasMoreTokens()) {
continue;
}
if(postalAddress != null) {
} else {
}
continue;
}
if(postalCode != null) {
} else {
}
continue;
}
} else {
}
continue;
}
} else {
}
continue;
}
} else {
}
} else {
}
}
}
/**
* Modifies the address card entry.
*/
while(st.hasMoreTokens()) {
} else {
}
} else {
}
}
} else {
}
}
}
/**
* Gets the address map for existing entries.
*/
try {
"map"+ map);
}
} catch (IDPPException ie) {
return null;
}
}
"address map " + addressMap);
}
return addressMap;
}
/**
* Sets the address entries using new modifiable map.
*/
} else {
}
} else {
}
}
} else {
}
return map;
}
/**
* Gets the address type from the entry or select expression.
*/
" value=" + value);
}
while(st.hasMoreTokens()) {
}
}
return null;
}
if(index != -1) {
if (index2 != -1) {
"address type:" + value);
}
return value;
}
}
return null;
}
/**
* Checks if there are any binary attributes.
*
* @return false
*/
public boolean hasBinaryAttributes() {
return false;
}
}