Class Address
- java.lang.Object
-
- es.gob.afirma.tsl.parsing.impl.common.Address
-
- All Implemented Interfaces:
java.io.Serializable
public class Address extends java.lang.Object implements java.io.SerializableClass that represents an Address with all its information not dependent of the specification or TSL version.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.0, 10/11/2020.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Address()Constructor method for the class Address.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNewElectronicAddress(java.lang.String language, java.net.URI ea)Adds a new Electronic Addres for the specified language.voidaddNewPostalAddress(java.lang.String language, PostalAddress pa)Adds a new Postal Addres for the specified language.java.util.Map<java.lang.String,java.util.List<java.net.URI>>getElectronicAddresses()Gets the value of the attributeelectronicAddresses.java.util.Map<java.lang.String,java.util.List<PostalAddress>>getPostalAddresses()Gets the value of the attributepostalAddresses.booleanisThereSomeElectronicAddress()Checks if there is some electronic address added to this address.booleanisThereSomePostalAddress()Checks if there is some postal address added to this address.voidsetElectronicAddresses(java.util.Map<java.lang.String,java.util.List<java.net.URI>> eaList)Sets the value of the attributeelectronicAddresses.voidsetPostalAddresses(java.util.Map<java.lang.String,java.util.List<PostalAddress>> paList)Sets the value of the attributepostalAddresses.
-
-
-
Method Detail
-
getPostalAddresses
public final java.util.Map<java.lang.String,java.util.List<PostalAddress>> getPostalAddresses()
Gets the value of the attributepostalAddresses.- Returns:
- the value of the attribute
postalAddresses.
-
addNewPostalAddress
public final void addNewPostalAddress(java.lang.String language, PostalAddress pa)Adds a new Postal Addres for the specified language.- Parameters:
language- language to which add a new postal address.pa- Postal Address to add.
-
setPostalAddresses
public final void setPostalAddresses(java.util.Map<java.lang.String,java.util.List<PostalAddress>> paList)
Sets the value of the attributepostalAddresses.- Parameters:
paList- The value for the attributepostalAddresses.
-
isThereSomePostalAddress
public final boolean isThereSomePostalAddress()
Checks if there is some postal address added to this address.- Returns:
trueif there is, otherwisefalse.
-
getElectronicAddresses
public final java.util.Map<java.lang.String,java.util.List<java.net.URI>> getElectronicAddresses()
Gets the value of the attributeelectronicAddresses.- Returns:
- the value of the attribute
electronicAddresses.
-
addNewElectronicAddress
public final void addNewElectronicAddress(java.lang.String language, java.net.URI ea)Adds a new Electronic Addres for the specified language.- Parameters:
language- language to which add a new electronic address.ea- Electronic address to add.
-
setElectronicAddresses
public final void setElectronicAddresses(java.util.Map<java.lang.String,java.util.List<java.net.URI>> eaList)
Sets the value of the attributeelectronicAddresses.- Parameters:
eaList- The value for the attributeelectronicAddresses.
-
isThereSomeElectronicAddress
public final boolean isThereSomeElectronicAddress()
Checks if there is some electronic address added to this address.- Returns:
trueif there is, otherwisefalse.
-
-