Modifier and Type | Field and Description |
---|---|
static Types |
RDF_HTML
http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML
|
static Types |
RDF_LANGSTRING
http://www.w3.org/1999/02/22-rdf-syntax-ns#langString
|
static Types |
RDF_PLAINLITERAL
Deprecated.
Not used in RDF-1.1
|
static Types |
RDF_XMLLITERAL
http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral
|
static Types |
XSD_ANYURI
http://www.w3.org/2001/XMLSchema#anyURI
|
static Types |
XSD_BASE64BINARY
http://www.w3.org/2001/XMLSchema#base64Binary
|
static Types |
XSD_BOOLEAN
http://www.w3.org/2001/XMLSchema#boolean
|
static Types |
XSD_BYTE
http://www.w3.org/2001/XMLSchema#byte
|
static Types |
XSD_DATE
http://www.w3.org/2001/XMLSchema#date
|
static Types |
XSD_DATETIME
http://www.w3.org/2001/XMLSchema#dateTime
|
static Types |
XSD_DAYTIMEDURATION
http://www.w3.org/2001/XMLSchema#dayTimeDuration
|
static Types |
XSD_DECIMAL
http://www.w3.org/2001/XMLSchema#decimal
|
static Types |
XSD_DOUBLE
http://www.w3.org/2001/XMLSchema#double
|
static Types |
XSD_DURATION
http://www.w3.org/2001/XMLSchema#duration
|
static Types |
XSD_FLOAT
http://www.w3.org/2001/XMLSchema#float
|
static Types |
XSD_GDAY
http://www.w3.org/2001/XMLSchema#gDay
|
static Types |
XSD_GMONTH
http://www.w3.org/2001/XMLSchema#gMonth
|
static Types |
XSD_GMONTHDAY
http://www.w3.org/2001/XMLSchema#gMonthDay
|
static Types |
XSD_GYEAR
http://www.w3.org/2001/XMLSchema#gYear
|
static Types |
XSD_GYEARMONTH
http://www.w3.org/2001/XMLSchema#gYearMonth
|
static Types |
XSD_HEXBINARY
http://www.w3.org/2001/XMLSchema#hexBinary
|
static Types |
XSD_INT
http://www.w3.org/2001/XMLSchema#int
|
static Types |
XSD_INTEGER
http://www.w3.org/2001/XMLSchema#integer
|
static Types |
XSD_LANGUAGE
http://www.w3.org/2001/XMLSchema#language
|
static Types |
XSD_LONG
http://www.w3.org/2001/XMLSchema#long
|
static Types |
XSD_NAME
http://www.w3.org/2001/XMLSchema#Name
|
static Types |
XSD_NCNAME
http://www.w3.org/2001/XMLSchema#NCName
|
static Types |
XSD_NEGATIVEINTEGER
http://www.w3.org/2001/XMLSchema#negativeInteger
|
static Types |
XSD_NMTOKEN
http://www.w3.org/2001/XMLSchema#NMTOKEN
|
static Types |
XSD_NONNEGATIVEINTEGER
http://www.w3.org/2001/XMLSchema#nonNegativeInteger
|
static Types |
XSD_NONPOSITIVEINTEGER
http://www.w3.org/2001/XMLSchema#nonPositiveInteger
|
static Types |
XSD_NORMALIZEDSTRING
http://www.w3.org/2001/XMLSchema#normalizedString
|
static Types |
XSD_POSITIVEINTEGER
http://www.w3.org/2001/XMLSchema#positiveInteger
|
static Types |
XSD_SHORT
http://www.w3.org/2001/XMLSchema#short
|
static Types |
XSD_STRING
http://www.w3.org/2001/XMLSchema#string
|
static Types |
XSD_TIME
http://www.w3.org/2001/XMLSchema#time
|
static Types |
XSD_TOKEN
http://www.w3.org/2001/XMLSchema#token
|
static Types |
XSD_UNSIGNEDBYTE
http://www.w3.org/2001/XMLSchema#unsignedByte
|
static Types |
XSD_UNSIGNEDINT
http://www.w3.org/2001/XMLSchema#unsignedInt
|
static Types |
XSD_UNSIGNEDLONG
http://www.w3.org/2001/XMLSchema#unsignedLong
|
static Types |
XSD_UNSIGNEDSHORT
http://www.w3.org/2001/XMLSchema#unsignedShort
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Check it this IRI is equal to another IRI.
|
static Optional<IRI> |
get(IRI nextIRI)
Get the IRI from this collection if it is present, or return
Optional.empty() otherwise. |
String |
getIRIString()
Return the IRI encoded as a native Unicode String.
The returned string must not include URL-encoding to escape non-ASCII characters. |
int |
hashCode()
Calculate a hash code for this IRI.
|
String |
ntriplesString()
Return the term serialised as specified by the RDF-1.1 N-Triples
Canonical form.
|
String |
toString() |
static Set<IRI> |
values()
Get an immutable set of the IRIs used by the RDF-1.1 specification to
define types, from the RDF and XML Schema vocabularies.
|
public static final Types RDF_LANGSTRING
@Deprecated public static final Types RDF_PLAINLITERAL
public static final Types RDF_XMLLITERAL
public static final Types XSD_ANYURI
public static final Types XSD_BASE64BINARY
public static final Types XSD_BOOLEAN
public static final Types XSD_DATETIME
public static final Types XSD_DAYTIMEDURATION
public static final Types XSD_DECIMAL
public static final Types XSD_DOUBLE
public static final Types XSD_DURATION
public static final Types XSD_GMONTH
public static final Types XSD_GMONTHDAY
public static final Types XSD_GYEARMONTH
public static final Types XSD_HEXBINARY
public static final Types XSD_INTEGER
public static final Types XSD_LANGUAGE
public static final Types XSD_NCNAME
public static final Types XSD_NEGATIVEINTEGER
public static final Types XSD_NMTOKEN
public static final Types XSD_NONNEGATIVEINTEGER
public static final Types XSD_NONPOSITIVEINTEGER
public static final Types XSD_NORMALIZEDSTRING
public static final Types XSD_POSITIVEINTEGER
public static final Types XSD_STRING
public static final Types XSD_UNSIGNEDBYTE
public static final Types XSD_UNSIGNEDINT
public static final Types XSD_UNSIGNEDLONG
public static final Types XSD_UNSIGNEDSHORT
public String getIRIString()
IRI
getIRIString
in interface IRI
public String ntriplesString()
RDFTerm
ntriplesString
in interface RDFTerm
public boolean equals(Object other)
IRI
IRI equality: Two IRIs are equal if and only if they are equivalent under Simple String Comparison according to section 5.1 of [RFC3987]. Further normalization MUST NOT be performed when comparing IRIs for equality.Two IRI instances are equal if and only if their
IRI.getIRIString()
are equal.
Implementations MUST also override IRI.hashCode()
so that two equal
IRIs produce the same hash code.public int hashCode()
IRI
The returned hash code MUST be equal to the String.hashCode()
of
the IRI.getIRIString()
.
This method MUST be implemented in conjunction with
IRI.equals(Object)
so that two equal IRIs produce the same hash
code.
public static Set<IRI> values()
Set
containing all of the IRIs in this collection.public static Optional<IRI> get(IRI nextIRI)
Optional.empty()
otherwise.nextIRI
- The IRI to look for.Optional
containing the IRI from this collection or
Optional.empty()
if it is not present here.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.