public class AbstractReferenceType extends Object implements Comparable<AbstractReferenceType>
| Constructor and Description |
|---|
AbstractReferenceType() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AbstractReferenceType o) |
boolean |
equals(Object obj) |
String |
getHref()
Get href
|
String |
getRole()
Get role
|
String |
getTitle()
Get title
|
String |
getTitleOrFromHref()
Get title from href.
Cuts href: - starts with 'http': cuts string at last '/' - starts with 'urn': cuts string at last ':' - contains "#": cuts string at last "#" |
int |
hashCode() |
boolean |
hasValues()
Check whether href, title, and role are set
|
boolean |
isSetHref()
Check whether href is set
|
boolean |
isSetRole()
Check whether role is set
|
boolean |
isSetTitle()
Check whether title is set
|
AbstractReferenceType |
setHref(String href)
Set href
|
AbstractReferenceType |
setRole(String role)
Set role
|
AbstractReferenceType |
setTitle(String title)
Set title
|
String |
toString() |
public String getHref()
public String getTitle()
public String getRole()
public AbstractReferenceType setHref(String href)
href - Href to setpublic AbstractReferenceType setTitle(String title)
title - Title to setpublic AbstractReferenceType setRole(String role)
role - Role to setpublic boolean isSetHref()
true, if href is setpublic boolean isSetTitle()
true, if title is setpublic boolean isSetRole()
true, if role is setpublic boolean hasValues()
true, if href, title, and role are setpublic String getTitleOrFromHref()
public int compareTo(AbstractReferenceType o)
compareTo in interface Comparable<AbstractReferenceType>Copyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.