public abstract class FramebaseResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IRI_MARKER
See
IRI_MARKER |
static java.lang.String |
PREFIX_FRAMEBASE
Default prefix for FrameBase (substituting
getNamespace() in QNames). |
static java.lang.String |
SEPARATOR
Separates blocks in the IRI path
|
Constructor and Description |
---|
FramebaseResource(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
customIriDecode(java.lang.String encoded)
Reverse for customEncodeUri()
|
static java.lang.String |
customIriEncode(java.lang.String nonencoded)
Percent-encodes all except a-zA-Z0-9\\-_
TODO check hyphen is not encoded and underscore is
Implementation extending application/x-www-form-urlencoded format from URLEncoder.encode().
|
boolean |
equals(java.lang.Object obj)
Equals iff same ids (IRIs)
|
abstract boolean |
extractComponents()
Extracts components from IRIs
(Current implementations use Regex over the IRIs but that may change in the future)
NOTE: It is case sensitive!! If the IRI used in the constructor had case modified (some servers do this), the correct functioning of this method isn not ensured.
|
java.lang.String |
getDefaultDescription() |
java.lang.String |
getDefaultLabel() |
java.lang.String |
getIri() |
static java.lang.String |
getNamespace()
Namespace for the IRIs of a FrameBase resource, or of a subclass that overrides this method.
|
int |
hashCode() |
void |
setDefaultDescription(java.lang.String defaultDescription) |
void |
setDefaultLabel(java.lang.String defaultName) |
void |
setIri(java.lang.String iri) |
public static final java.lang.String PREFIX_FRAMEBASE
getNamespace()
in QNames).public static final java.lang.String IRI_MARKER
IRI_MARKER
public static final java.lang.String SEPARATOR
public static java.lang.String customIriDecode(java.lang.String encoded)
encoded
- public static java.lang.String customIriEncode(java.lang.String nonencoded)
nonencoded
- public static java.lang.String getNamespace()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public abstract boolean extractComponents()
public java.lang.String getDefaultDescription()
public java.lang.String getDefaultLabel()
public java.lang.String getIri()
public int hashCode()
hashCode
in class java.lang.Object
public void setDefaultDescription(java.lang.String defaultDescription)
public void setDefaultLabel(java.lang.String defaultName)
public void setIri(java.lang.String iri)