public class UrlCategory extends Object implements com.aspose.ms.System.IEquatable<UrlCategory>
Represents category for a URL
Modifier and Type | Field and Description |
---|---|
static String |
BLOG_VALUE
String value for 'Blog' category
|
static String |
CUSTOM_VALUE
String value for 'Custom' category
|
static String |
FTP_VALUE
String value for 'Ftp' category
|
static String |
HOME_PAGE_VALUE
String value for 'HomePage' category
|
static String |
HOME_VALUE
String value for 'Home' category
|
static String |
PROFILE_VALUE
String value for 'Profile' category
|
static String |
WORK_VALUE
String value for 'Work' category
|
Constructor and Description |
---|
UrlCategory(String description)
Initializes a new instance of the
UrlCategory class with 'Custom' category. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether the specified Object is equal to the current Object.
|
boolean |
equals(UrlCategory other)
Determines whether the specified object is equal to the current object.
|
static UrlCategory |
getBlog()
Blog URL
|
static UrlCategory |
getCustom()
Custom page URL
|
String |
getDescription()
Gets description for the 'Custom' category of a URL
|
static UrlCategory |
getFtp()
Ftp URL
|
static UrlCategory |
getHome()
Contact's home-related site.
|
static UrlCategory |
getHomePage()
Home page URL
|
static UrlCategory |
getProfile()
Profile URL
|
String |
getValue()
Gets category of a URL
|
static UrlCategory |
getWork()
Contact's work-related site.
|
int |
hashCode()
GetHashCode returns a hash function for this object.
|
static boolean |
op_Equality(UrlCategory a,
UrlCategory b)
Determines whether the specified objects are equal.
|
static boolean |
op_Inequality(UrlCategory a,
UrlCategory b)
Determines whether the specified objects are not equal.
|
String |
toString()
Returns a string that represents the current object.
|
public static final String PROFILE_VALUE
String value for 'Profile' category
public static final String HOME_PAGE_VALUE
String value for 'HomePage' category
public static final String HOME_VALUE
String value for 'Home' category
public static final String WORK_VALUE
String value for 'Work' category
public static final String BLOG_VALUE
String value for 'Blog' category
public static final String FTP_VALUE
String value for 'Ftp' category
public static final String CUSTOM_VALUE
String value for 'Custom' category
public UrlCategory(String description)
Initializes a new instance of the UrlCategory
class with 'Custom' category.
description
- Description for the 'Custom' category of a URLpublic static UrlCategory getProfile()
Profile URL
public static UrlCategory getHomePage()
Home page URL
public static UrlCategory getHome()
Contact's home-related site.
public static UrlCategory getWork()
Contact's work-related site.
public static UrlCategory getBlog()
Blog URL
public static UrlCategory getFtp()
Ftp URL
public static UrlCategory getCustom()
Custom page URL
public final String getValue()
Gets category of a URL
public final String getDescription()
Gets description for the 'Custom' category of a URL
public boolean equals(UrlCategory other)
Determines whether the specified object is equal to the current object.
other
- The object to compare with the current object.public String toString()
Returns a string that represents the current object.
public int hashCode()
GetHashCode returns a hash function for this object.
public boolean equals(Object obj)
Determines whether the specified Object is equal to the current Object.
equals
in interface com.aspose.ms.System.IEquatable<UrlCategory>
equals
in class Object
obj
- The Object to compare with the current Object.public static boolean op_Equality(UrlCategory a, UrlCategory b)
Determines whether the specified objects are equal.
a
- First object to compareb
- Second object to comparepublic static boolean op_Inequality(UrlCategory a, UrlCategory b)
Determines whether the specified objects are not equal.
a
- First object to compareb
- Second object to compare