Class Address

java.lang.Object
com.imc.iss.groovy.account.Address

public class Address extends Object
This is a class representing an address for use by groovy scripts.
  • Constructor Details

    • Address

      public Address(BusinessObject addressBO, boolean isMainAddress, boolean isShipToAddress, boolean isBillToAddress)
  • Method Details

    • getAddressBO

      public BusinessObject getAddressBO()
    • getAddressDataAttribute

      public Object getAddressDataAttribute(String attributeURI) throws IMCException
      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

      public String getAddressRelationAttributeErpId(String attributeURI) throws IMCException
      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

      public String getAddressRelationAttributeObjectId(String attributeURI) throws IMCException
      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

      public String getAddressRelationAttributeObjectName(String attributeURI) throws IMCException
      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

      public String getAddressRelationAttributeURI(String attributeURI) throws IMCException
      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

      public Address setAddressDataAttribute(String attributeURI, Object value) throws IMCException
      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 Address instance.
      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 Address instance.
      Throws:
      IMCException - the platform exception
    • toString

      public String toString()
      Overrides:
      toString in class Object