AssociatedPersonCategory

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.IEquatable

public class AssociatedPersonCategory implements System.IEquatable<AssociatedPersonCategory>

Represents category for a persons

Constructors

Constructor Description
AssociatedPersonCategory(String description) Initializes a new instance of the AssociatedPersonCategory class with ‘Custom’ category.

Fields

Field Description
SPOUSE_VALUE String value for ‘Spouse’ category
CHILD_VALUE String value for ‘Child’ category
MOTHER_VALUE String value for ‘Mother’ category
FATHER_VALUE String value for ‘Father’ category
PARENT_VALUE String value for ‘Parent’ category
BROTHER_VALUE String value for ‘Brother’ category
SISTER_VALUE String value for ‘Sister’ category
FRIEND_VALUE String value for ‘Friend’ category
RELATIVE_VALUE String value for ‘Relative’ category
MANAGER_VALUE String value for ‘Manager’ category
ASSISTANT_VALUE String value for ‘Assistant’ category
REFERRED_BY_VALUE String value for ‘ReferredBy’ category
PARTNER_VALUE String value for ‘Partner’ category
DOMESTIC_PARTNER_VALUE String value for ‘DomesticPartner’ category
CUSTOM_VALUE String value for ‘Custom’ category

Methods

Method Description
getSpouse() Spouse
getChild() Child
getMother() Mother
getFather() Father
getParent() Parent
getBrother() Brother
getSister() Sister
getFriend() Friend
getRelative() Relative
getManager() Manager
getAssistant() Assistant
getReferredBy() Referred by
getPartner() Partner
getDomesticPartner() Domestic partner
getCustom() Custom category with empty description
getValue() Gets category of a person
getDescription() Gets description for the ‘Custom’ category of a person
toString() Returns a string that represents the current object.
hashCode() GetHashCode returns a hash function for this object.
equals(Object obj) Determines whether the specified Object is equal to the current Object.
op_Equality(AssociatedPersonCategory a, AssociatedPersonCategory b) Determines whether the specified objects are equal.
op_Inequality(AssociatedPersonCategory a, AssociatedPersonCategory b) Determines whether the specified objects are not equal.
equals(AssociatedPersonCategory other) Determines whether the specified object is equal to the current object.

AssociatedPersonCategory(String description)

public AssociatedPersonCategory(String description)

Initializes a new instance of the AssociatedPersonCategory class with ‘Custom’ category.

Parameters:

Parameter Type Description
description java.lang.String Description for the ‘Custom’ category of a person

SPOUSE_VALUE

public static final String SPOUSE_VALUE

String value for ‘Spouse’ category

CHILD_VALUE

public static final String CHILD_VALUE

String value for ‘Child’ category

MOTHER_VALUE

public static final String MOTHER_VALUE

String value for ‘Mother’ category

FATHER_VALUE

public static final String FATHER_VALUE

String value for ‘Father’ category

PARENT_VALUE

public static final String PARENT_VALUE

String value for ‘Parent’ category

BROTHER_VALUE

public static final String BROTHER_VALUE

String value for ‘Brother’ category

SISTER_VALUE

public static final String SISTER_VALUE

String value for ‘Sister’ category

FRIEND_VALUE

public static final String FRIEND_VALUE

String value for ‘Friend’ category

RELATIVE_VALUE

public static final String RELATIVE_VALUE

String value for ‘Relative’ category

MANAGER_VALUE

public static final String MANAGER_VALUE

String value for ‘Manager’ category

ASSISTANT_VALUE

public static final String ASSISTANT_VALUE

String value for ‘Assistant’ category

REFERRED_BY_VALUE

public static final String REFERRED_BY_VALUE

String value for ‘ReferredBy’ category

PARTNER_VALUE

public static final String PARTNER_VALUE

String value for ‘Partner’ category

DOMESTIC_PARTNER_VALUE

public static final String DOMESTIC_PARTNER_VALUE

String value for ‘DomesticPartner’ category

CUSTOM_VALUE

public static final String CUSTOM_VALUE

String value for ‘Custom’ category

getSpouse()

public static AssociatedPersonCategory getSpouse()

Spouse

Returns: AssociatedPersonCategory

getChild()

public static AssociatedPersonCategory getChild()

Child

Returns: AssociatedPersonCategory

getMother()

public static AssociatedPersonCategory getMother()

Mother

Returns: AssociatedPersonCategory

getFather()

public static AssociatedPersonCategory getFather()

Father

Returns: AssociatedPersonCategory

getParent()

public static AssociatedPersonCategory getParent()

Parent

Returns: AssociatedPersonCategory

getBrother()

public static AssociatedPersonCategory getBrother()

Brother

Returns: AssociatedPersonCategory

getSister()

public static AssociatedPersonCategory getSister()

Sister

Returns: AssociatedPersonCategory

getFriend()

public static AssociatedPersonCategory getFriend()

Friend

Returns: AssociatedPersonCategory

getRelative()

public static AssociatedPersonCategory getRelative()

Relative

Returns: AssociatedPersonCategory

getManager()

public static AssociatedPersonCategory getManager()

Manager

Returns: AssociatedPersonCategory

getAssistant()

public static AssociatedPersonCategory getAssistant()

Assistant

Returns: AssociatedPersonCategory

getReferredBy()

public static AssociatedPersonCategory getReferredBy()

Referred by

Returns: AssociatedPersonCategory

getPartner()

public static AssociatedPersonCategory getPartner()

Partner

Returns: AssociatedPersonCategory

getDomesticPartner()

public static AssociatedPersonCategory getDomesticPartner()

Domestic partner

Returns: AssociatedPersonCategory

getCustom()

public static AssociatedPersonCategory getCustom()

Custom category with empty description

Returns: AssociatedPersonCategory

getValue()

public final String getValue()

Gets category of a person

Returns: java.lang.String

getDescription()

public final String getDescription()

Gets description for the ‘Custom’ category of a person

Returns: java.lang.String

toString()

public String toString()

Returns a string that represents the current object.

Returns: java.lang.String - Returns a string that represents the current object.

hashCode()

public int hashCode()

GetHashCode returns a hash function for this object.

Returns: int - Returns a hash function for this object.

equals(Object obj)

public boolean equals(Object obj)

Determines whether the specified Object is equal to the current Object.

Parameters:

Parameter Type Description
obj java.lang.Object The Object to compare with the current Object.

Returns: boolean - Returns a boolean indicating if the passed in object obj is Equal to this.

op_Equality(AssociatedPersonCategory a, AssociatedPersonCategory b)

public static boolean op_Equality(AssociatedPersonCategory a, AssociatedPersonCategory b)

Determines whether the specified objects are equal.

Parameters:

Parameter Type Description
a AssociatedPersonCategory First object to compare
b AssociatedPersonCategory Second object to compare

Returns: boolean - Returns true if objects are equal, otherwise false.

op_Inequality(AssociatedPersonCategory a, AssociatedPersonCategory b)

public static boolean op_Inequality(AssociatedPersonCategory a, AssociatedPersonCategory b)

Determines whether the specified objects are not equal.

Parameters:

Parameter Type Description
a AssociatedPersonCategory First object to compare
b AssociatedPersonCategory Second object to compare

Returns: boolean - Returns true if objects are not equal, otherwise false.

equals(AssociatedPersonCategory other)

public boolean equals(AssociatedPersonCategory other)

Determines whether the specified object is equal to the current object.

Parameters:

Parameter Type Description
other AssociatedPersonCategory The object to compare with the current object.

Returns: boolean - true if the specified object is equal to the current object; otherwise, false.