Package com.imc.iss.groovy.account
Class Address
java.lang.Object
com.imc.iss.groovy.account.Address
This is a class representing an address for use by groovy scripts.
-
Constructor Summary
ConstructorsConstructorDescriptionAddress(BusinessObject addressBO, boolean isMainAddress, boolean isShipToAddress, boolean isBillToAddress) -
Method Summary
Modifier and TypeMethodDescriptiongetAddressDataAttribute(String attributeURI) To get the value of a address data attribute by attribute URI.getAddressRelationAttributeErpId(String attributeURI) To get the ERPID of a address relation attribute by attribute URI.getAddressRelationAttributeObjectId(String attributeURI) To get the object Id of a address relation attribute by attribute URI.getAddressRelationAttributeObjectName(String attributeURI) To get the object name of a address relation attribute by attribute URI.getAddressRelationAttributeURI(String attributeURI) To get the URI of a address relation attribute by attribute URI.booleanbooleanbooleansetAddressDataAttribute(String attributeURI, Object value) To set a value for the address data attribute.setAddressRelationAttribute(String attributeURI, String valueURI) To set a value for the address relation attribute.toString()
-
Constructor Details
-
Address
public Address(BusinessObject addressBO, boolean isMainAddress, boolean isShipToAddress, boolean isBillToAddress)
-
-
Method Details
-
getAddressBO
-
getAddressDataAttribute
To get the value of a address data attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the address data attribute.- Returns:
- the value of the address data attribute as Object.
- Throws:
IMCException
-
getAddressRelationAttributeErpId
To get the ERPID of a address relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the address relation attribute.- Returns:
- the ERPId of the address relation attribute as String.
- Throws:
IMCException
-
getAddressRelationAttributeObjectId
To get the object Id of a address relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the address relation attribute.- Returns:
- the objectId of the address relation attribute as String.
- Throws:
IMCException
-
getAddressRelationAttributeObjectName
To get the object name of a address relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the address relation attribute.- Returns:
- the object name of the address relation attribute as String.
- Throws:
IMCException
-
getAddressRelationAttributeURI
To get the URI of a address relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the address relation attribute.- Returns:
- the object URI of the address relation attribute as String.
- Throws:
IMCException
-
isBillToAddress
public boolean isBillToAddress() -
isMainAddress
public boolean isMainAddress() -
isShipToAddress
public boolean isShipToAddress() -
setAddressDataAttribute
To set a value for the address data attribute.- Parameters:
attributeURI- as String. The URI of the address data attribute.value- as Object. The value for the address data attribute.- Returns:
- The
Addressinstance. - Throws:
IMCException- the platform exception
-
setAddressRelationAttribute
public Address setAddressRelationAttribute(String attributeURI, String valueURI) throws IMCException To set a value for the address relation attribute.- Parameters:
attributeURI- as String. The URI of the address relation attribute.valueURI- as String. The value for the address relation attribute.- Returns:
- The
Addressinstance. - Throws:
IMCException- the platform exception
-
toString
-