Package org.n52.shetland.ogc.gml
Class AbstractReferenceType
java.lang.Object
org.n52.shetland.ogc.gml.AbstractReferenceType
- All Implemented Interfaces:
Comparable<AbstractReferenceType>
- Direct Known Subclasses:
AbstractDataComponentContainer,AbstractSmlDataComponentContainer,ProcessMethod,ReferenceType,SmlComponent,SmlContact,SmlIo,SmlParameter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetHref()Get hrefgetRole()Get rolegetTitle()Get titleGet title from href.
Cuts href:
- starts with 'http': cuts string at last '/'
- starts with 'urn': cuts string at last ':'
- contains "#": cuts string at last "#"inthashCode()booleanCheck whether href, title, and role are setbooleanCheck whether href is setbooleanCheck whether role is setbooleanCheck whether title is setSet hrefSet roleSet titletoString()
-
Constructor Details
-
AbstractReferenceType
public AbstractReferenceType()
-
-
Method Details
-
getHref
Get href- Returns:
- Href
-
getTitle
Get title- Returns:
- Title
-
getRole
Get role- Returns:
- Role
-
setHref
Set href- Parameters:
href- Href to set
-
setTitle
Set title- Parameters:
title- Title to set
-
setRole
Set role- Parameters:
role- Role to set
-
isSetHref
public boolean isSetHref()Check whether href is set- Returns:
true, if href is set
-
isSetTitle
public boolean isSetTitle()Check whether title is set- Returns:
true, if title is set
-
isSetRole
public boolean isSetRole()Check whether role is set- Returns:
true, if role is set
-
hasValues
public boolean hasValues()Check whether href, title, and role are set- Returns:
true, if href, title, and role are set
-
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 "#"- Returns:
- Title from href
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<AbstractReferenceType>
-
hashCode
public int hashCode() -
equals
-