Class EntityAddress.Builder
java.lang.Object
org.kuali.rice.kim.api.identity.address.EntityAddress.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,Defaultable,GloballyUnique,Identifiable,Versioned,ModelBuilder,EntityAddressContract
- Enclosing class:
EntityAddress
public static final class EntityAddress.Builder
extends Object
implements Serializable, ModelBuilder, EntityAddressContract
A builder which can be used to construct
EntityAddress instances. Enforces the constraints of the EntityAddressContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static EntityAddress.Buildercreate()static EntityAddress.Buildercreate(EntityAddressContract contract) Returns theEntityAddressContract's address format Corresponds to PESC AddressFormatGets thisEntityAddressContract's address type code.Returns the attention line for thisEntityAddressContractCorresponds to PESC AttentionLineReturns the unmasked attention line for thisEntityAddressContractgetCity()Gets thisEntityAddressContract's city name.Gets thisEntityAddressContract's unmasked city name.Gets thisEntityAddressContract's country code.Gets thisEntityAddressContract's unmasked country code.Gets this id of the parent identity object.Gets this entityTypeCode of theEntityAddressContract's object.getId()getLine1()Gets thisEntityAddressContract's first line.Gets thisEntityAddressContract's unmasked first line.getLine2()Gets thisEntityAddressContract's second line.Gets thisEntityAddressContract's unmasked second line.getLine3()Gets thisEntityAddressContract's third line.Gets thisEntityAddressContract's unmasked third line.org.joda.time.DateTimeReturns theEntityAddressContract's modification date Corresponds to PESC ModifiedDateReturns theEntityAddressContract's note/message Corresponds to PESC NoteMessageGets thisEntityAddressContract's postal code.Gets thisEntityAddressContract's unmasked postal code.Gets thisEntityAddressContract's state code.Gets thisEntityAddressContract's unmasked state code.org.joda.time.DateTimeReturns theEntityAddressContract's validation date Corresponds to PESC ValidatedDatebooleanisActive()booleanbooleanReturns a boolean value that determines if address fields should be suppressed.booleanReturns whether theEntityAddressContractis validated Corresponds to PESC ValidatedvoidsetActive(boolean active) voidsetAddressFormat(String addressFormat) voidsetAddressType(CodedAttribute.Builder addressType) voidsetAttentionLine(String attnLine) voidvoidsetCountryCode(String countryCode) voidsetDefaultValue(boolean defaultValue) voidsetEntityId(String entityId) voidsetEntityTypeCode(String entityTypeCode) voidvoidvoidvoidvoidsetModifiedDate(org.joda.time.DateTime modifiedDate) voidsetNoteMessage(String noteMessage) voidsetObjectId(String objectId) voidsetPostalCode(String postalCode) voidsetStateProvinceCode(String stateProvinceCode) voidsetValidated(boolean validated) voidsetValidatedDate(org.joda.time.DateTime validatedDate) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
-
create
-
build
- Specified by:
buildin interfaceModelBuilder
-
getEntityId
Description copied from interface:EntityAddressContractGets this id of the parent identity object.- Specified by:
getEntityIdin interfaceEntityAddressContract- Returns:
- the identity id for this
EntityAddressContract
-
getEntityTypeCode
Description copied from interface:EntityAddressContractGets this entityTypeCode of theEntityAddressContract's object.- Specified by:
getEntityTypeCodein interfaceEntityAddressContract- Returns:
- the identity type code for this
EntityAddressContract
-
getAddressType
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's address type code.- Specified by:
getAddressTypein interfaceEntityAddressContract- Returns:
- the address type for this
EntityAddressContract, or null if none has been assigned.
-
getAttentionLine
Description copied from interface:EntityAddressContractReturns the attention line for thisEntityAddressContractCorresponds to PESC AttentionLine- Specified by:
getAttentionLinein interfaceEntityAddressContract- Returns:
- the attention line
-
getLine1
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's first line.- Specified by:
getLine1in interfaceEntityAddressContract- Returns:
- the first line for this
EntityAddressContract, or null if none has been assigned.
-
getLine2
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's second line.- Specified by:
getLine2in interfaceEntityAddressContract- Returns:
- the second line for this
EntityAddressContract, or null if none has been assigned.
-
getLine3
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's third line.- Specified by:
getLine3in interfaceEntityAddressContract- Returns:
- the third line for this
EntityAddressContract, or null if none has been assigned.
-
getCity
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's city name. Corresponds to PESC City.- Specified by:
getCityin interfaceEntityAddressContract- Returns:
- the city name for this
EntityAddressContract, or null if none has been assigned.
-
getStateProvinceCode
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's state code. Corresponds to PESC StateProvinceCode.- Specified by:
getStateProvinceCodein interfaceEntityAddressContract- Returns:
- the state code for this
EntityAddressContract, or null if none has been assigned.
-
getPostalCode
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's postal code.- Specified by:
getPostalCodein interfaceEntityAddressContract- Returns:
- the postal code for this
EntityAddressContract, or null if none has been assigned.
-
getCountryCode
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's country code.- Specified by:
getCountryCodein interfaceEntityAddressContract- Returns:
- the country code for this
EntityAddressContract, or null if none has been assigned.
-
getAttentionLineUnmasked
Description copied from interface:EntityAddressContractReturns the unmasked attention line for thisEntityAddressContract- Specified by:
getAttentionLineUnmaskedin interfaceEntityAddressContract- Returns:
- the unmasked attention line
-
getLine1Unmasked
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's unmasked first line.- Specified by:
getLine1Unmaskedin interfaceEntityAddressContract- Returns:
- the unmasked first line for this
EntityAddressContract, or null if none has been assigned.
-
getLine2Unmasked
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's unmasked second line.- Specified by:
getLine2Unmaskedin interfaceEntityAddressContract- Returns:
- the unmasked second line for this
EntityAddressContract, or null if none has been assigned.
-
getLine3Unmasked
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's unmasked third line.- Specified by:
getLine3Unmaskedin interfaceEntityAddressContract- Returns:
- the unmasked third line for this
EntityAddressContract, or null if none has been assigned.
-
getCityUnmasked
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's unmasked city name.- Specified by:
getCityUnmaskedin interfaceEntityAddressContract- Returns:
- the unmasked city name for this
EntityAddressContract, or null if none has been assigned.
-
getStateProvinceCodeUnmasked
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's unmasked state code.- Specified by:
getStateProvinceCodeUnmaskedin interfaceEntityAddressContract- Returns:
- the unmasked state code for this
EntityAddressContract, or null if none has been assigned.
-
getPostalCodeUnmasked
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's unmasked postal code.- Specified by:
getPostalCodeUnmaskedin interfaceEntityAddressContract- Returns:
- the unmasked postal code for this
EntityAddressContract, or null if none has been assigned.
-
getCountryCodeUnmasked
Description copied from interface:EntityAddressContractGets thisEntityAddressContract's unmasked country code.- Specified by:
getCountryCodeUnmaskedin interfaceEntityAddressContract- Returns:
- the unmasked country code for this
EntityAddressContract, or null if none has been assigned.
-
getAddressFormat
Description copied from interface:EntityAddressContractReturns theEntityAddressContract's address format Corresponds to PESC AddressFormat- Specified by:
getAddressFormatin interfaceEntityAddressContract- Returns:
- the address format or null if none is set
-
getModifiedDate
public org.joda.time.DateTime getModifiedDate()Description copied from interface:EntityAddressContractReturns theEntityAddressContract's modification date Corresponds to PESC ModifiedDate- Specified by:
getModifiedDatein interfaceEntityAddressContract- Returns:
- the modification date
-
getValidatedDate
public org.joda.time.DateTime getValidatedDate()Description copied from interface:EntityAddressContractReturns theEntityAddressContract's validation date Corresponds to PESC ValidatedDate- Specified by:
getValidatedDatein interfaceEntityAddressContract- Returns:
- the validation date or null if none is set
-
isValidated
public boolean isValidated()Description copied from interface:EntityAddressContractReturns whether theEntityAddressContractis validated Corresponds to PESC Validated- Specified by:
isValidatedin interfaceEntityAddressContract- Returns:
- whether the address is validated
-
getNoteMessage
Description copied from interface:EntityAddressContractReturns theEntityAddressContract's note/message Corresponds to PESC NoteMessage- Specified by:
getNoteMessagein interfaceEntityAddressContract- Returns:
- the note/message or null if none is set
-
isSuppressAddress
public boolean isSuppressAddress()Description copied from interface:EntityAddressContractReturns a boolean value that determines if address fields should be suppressed.- Specified by:
isSuppressAddressin interfaceEntityAddressContract- Returns:
- boolean value that determines if address should be suppressed.
-
isDefaultValue
public boolean isDefaultValue()- Specified by:
isDefaultValuein interfaceDefaultable
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
getObjectId
- Specified by:
getObjectIdin interfaceGloballyUnique
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
setEntityId
-
setEntityTypeCode
-
setAddressType
-
setAttentionLine
-
setLine1
-
setLine2
-
setLine3
-
setCity
-
setStateProvinceCode
-
setPostalCode
-
setCountryCode
-
setAddressFormat
-
setModifiedDate
public void setModifiedDate(org.joda.time.DateTime modifiedDate) -
setValidatedDate
public void setValidatedDate(org.joda.time.DateTime validatedDate) -
setValidated
public void setValidated(boolean validated) -
setNoteMessage
-
setDefaultValue
public void setDefaultValue(boolean defaultValue) -
setVersionNumber
-
setObjectId
-
setActive
public void setActive(boolean active) -
setId
-