Package com.netscape.certsrv.base
Class Link
- java.lang.Object
-
- com.netscape.certsrv.base.Link
-
- All Implemented Interfaces:
JSONSerializer
public class Link extends java.lang.Object implements JSONSerializer
- Author:
- alee
-
-
Field Summary
-
Fields inherited from interface com.netscape.certsrv.util.JSONSerializer
logger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static Link
fromDOM(org.w3c.dom.Element linkElement)
java.lang.String
getHref()
java.lang.String
getRelationship()
java.lang.String
getType()
int
hashCode()
void
setHref(java.lang.String href)
void
setRelationship(java.lang.String relationship)
void
setType(java.lang.String type)
org.w3c.dom.Element
toDOM(org.w3c.dom.Document document)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.netscape.certsrv.util.JSONSerializer
toJSON
-
-
-
-
Method Detail
-
getRelationship
public java.lang.String getRelationship()
- Returns:
- the relationship
-
setRelationship
public void setRelationship(java.lang.String relationship)
- Parameters:
relationship
- the relationship to set
-
getHref
public java.lang.String getHref()
- Returns:
- the href
-
setHref
public void setHref(java.lang.String href)
- Parameters:
href
- the href to set
-
getType
public java.lang.String getType()
- Returns:
- the type
-
setType
public void setType(java.lang.String type)
- Parameters:
type
- the type to set
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toDOM
public org.w3c.dom.Element toDOM(org.w3c.dom.Document document)
-
fromDOM
public static Link fromDOM(org.w3c.dom.Element linkElement)
-
-