UrlCategory

Inheritance: java.lang.Object

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

public class UrlCategory implements System.IEquatable<UrlCategory>

Represents category for a URL

Constructors

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

Fields

Field Description
PROFILE_VALUE String value for ‘Profile’ category
HOME_PAGE_VALUE String value for ‘HomePage’ category
HOME_VALUE String value for ‘Home’ category
WORK_VALUE String value for ‘Work’ category
BLOG_VALUE String value for ‘Blog’ category
FTP_VALUE String value for ‘Ftp’ category
CUSTOM_VALUE String value for ‘Custom’ category

Methods

Method Description
getProfile() Profile URL
getHomePage() Home page URL
getHome() Contact’s home-related site.
getWork() Contact’s work-related site.
getBlog() Blog URL
getFtp() Ftp URL
getCustom() Custom page URL
getValue() Gets category of a URL
getDescription() Gets description for the ‘Custom’ category of a URL
equals(UrlCategory other) Determines whether the specified object is equal to the current object.
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(UrlCategory a, UrlCategory b) Determines whether the specified objects are equal.
op_Inequality(UrlCategory a, UrlCategory b) Determines whether the specified objects are not equal.

UrlCategory(String description)

public UrlCategory(String description)

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

Parameters:

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

PROFILE_VALUE

public static final String PROFILE_VALUE

String value for ‘Profile’ category

HOME_PAGE_VALUE

public static final String HOME_PAGE_VALUE

String value for ‘HomePage’ category

HOME_VALUE

public static final String HOME_VALUE

String value for ‘Home’ category

WORK_VALUE

public static final String WORK_VALUE

String value for ‘Work’ category

BLOG_VALUE

public static final String BLOG_VALUE

String value for ‘Blog’ category

FTP_VALUE

public static final String FTP_VALUE

String value for ‘Ftp’ category

CUSTOM_VALUE

public static final String CUSTOM_VALUE

String value for ‘Custom’ category

getProfile()

public static UrlCategory getProfile()

Profile URL

Returns: UrlCategory

getHomePage()

public static UrlCategory getHomePage()

Home page URL

Returns: UrlCategory

getHome()

public static UrlCategory getHome()

Contact’s home-related site.

Returns: UrlCategory

getWork()

public static UrlCategory getWork()

Contact’s work-related site.

Returns: UrlCategory

getBlog()

public static UrlCategory getBlog()

Blog URL

Returns: UrlCategory

getFtp()

public static UrlCategory getFtp()

Ftp URL

Returns: UrlCategory

getCustom()

public static UrlCategory getCustom()

Custom page URL

Returns: UrlCategory

getValue()

public final String getValue()

Gets category of a URL

Returns: java.lang.String

getDescription()

public final String getDescription()

Gets description for the ‘Custom’ category of a URL

Returns: java.lang.String

equals(UrlCategory other)

public boolean equals(UrlCategory other)

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

Parameters:

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

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

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(UrlCategory a, UrlCategory b)

public static boolean op_Equality(UrlCategory a, UrlCategory b)

Determines whether the specified objects are equal.

Parameters:

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

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

op_Inequality(UrlCategory a, UrlCategory b)

public static boolean op_Inequality(UrlCategory a, UrlCategory b)

Determines whether the specified objects are not equal.

Parameters:

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

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