|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jena.iri.impl.AbsIRIFactoryImpl
org.apache.jena.iri.IRI
org.apache.jena.iri.impl.AbsIRIImpl
public abstract class AbsIRIImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.jena.iri.ViolationCodes |
|---|
ViolationCodes.Initialize |
| Field Summary |
|---|
| Fields inherited from class org.apache.jena.iri.IRI |
|---|
ILLFORMED_PORT, NO_PORT |
| Fields inherited from interface org.apache.jena.iri.IRIComponents |
|---|
AUTHORITY, FRAGMENT, HOST, PATH, PATHQUERY, PORT, QUERY, SCHEME, USER |
| Fields inherited from interface org.apache.jena.iri.IRIRelativize |
|---|
ABSOLUTE, CHILD, GRANDPARENT, NETWORK, PARENT, SAMEDOCUMENT |
| Constructor Summary | |
|---|---|
AbsIRIImpl()
|
|
| Method Summary | |
|---|---|
Iterator<Violation> |
allViolations()
|
IRI |
create(IRI i)
Make a new IRI object (possibly including IRI resolution), and check it for violations of the standards being enforced by the factory. |
IRI |
create(String s)
Make a new IRI object (possibly including IRI resolution), and check it for violations of the standards being enforced by the factory. |
boolean |
equals(Object o)
|
String |
getASCIIHost()
The host part of the authority, encoded as an International Domain Name. |
String |
getAuthority()
The authority component, found between the first "//" and the next "/". |
String |
getFragment()
The fragment, found after a "#" at the end of the main URI (note a fragment may itself contain a "#"). |
String |
getHost()
The host part of the authority. |
String |
getPath()
The path component of the IRI; always present, possibly the empty string. |
int |
getPort()
The port number from the authority component. |
String |
getQuery()
The query component of the IRI. |
String |
getRawAuthority()
The authority component, found between the first "//" and the next "/". |
String |
getRawFragment()
The fragment, found after a "#" at the end of the main URI (note a fragment may itself contain a "#"). |
String |
getRawHost()
The host part of the authority. |
String |
getRawPath()
The path component of the IRI; always present, possibly the empty string. |
String |
getRawQuery()
The query component of the IRI. |
String |
getRawUserinfo()
The user information part of the authority component of the IRI. |
String |
getScheme()
The scheme component of the IRI. |
String |
getUserinfo()
The user information part of the authority component of the IRI. |
int |
hashCode()
|
boolean |
hasViolation(boolean includeWarnings)
Are there any violations of the factory's specification settings. |
boolean |
isAbsolute()
Does this IRI specify a scheme. |
boolean |
isRelative()
Is this IRI a relative reference without a scheme specified. |
boolean |
isRootless()
Is this an 'opaque' IRI. |
int |
ladderEquals(IRI iri)
To be defined: use the comparison ladder. |
boolean |
ladderEquals(IRI iri,
int other)
To be defined: use the comparison ladder. |
IRI |
normalize(boolean useDns)
To be defined - return result does not violate any minting conditions. |
IRI |
relativize(IRI abs)
Returns an IRI that when resolved against this IRI would return abs. |
IRI |
relativize(IRI abs,
int flags)
Returns an IRI that when resolved against this IRI would return abs. |
IRI |
relativize(String abs)
Returns an IRI that when resolved against this IRI would return abs. |
IRI |
relativize(String abs,
int flags)
Returns an IRI that when resolved against this IRI would return abs. |
String |
toASCIIString()
Converts the IRI into ASCII. |
String |
toDisplayString()
The IRI string with any recommended bi-directional control characters (if necessary) to ensure correct display. |
URL |
toURL()
Converts the IRI to an ASCII string, and then to a URL. |
Iterator<Violation> |
violations(boolean includeWarnings)
The error and warning conditions associated with this IRI violating the standards associated with its factory. |
| Methods inherited from class org.apache.jena.iri.IRI |
|---|
main, resolve, resolve, toString |
| Methods inherited from class org.apache.jena.iri.impl.AbsIRIFactoryImpl |
|---|
construct, construct |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.jena.iri.IRIFactoryI |
|---|
construct, construct |
| Constructor Detail |
|---|
public AbsIRIImpl()
| Method Detail |
|---|
public boolean isAbsolute()
IRI
isAbsolute in class IRIpublic boolean isRelative()
IRI
isRelative in class IRIpublic boolean hasViolation(boolean includeWarnings)
IRIviolations(includeWarnings).hasNext(),
but faster.
hasViolation in class IRIincludeWarnings - If true then warnings are reported as well as errors.
public Iterator<Violation> violations(boolean includeWarnings)
IRI
violations in class IRIincludeWarnings - If true then warnings are returned as well as errors.
Violations found which violate the
factory's standards.
public URL toURL()
throws MalformedURLException
IRI
toURL in class IRIMalformedURLException - If IDNA conversion failed, or from java.net.URL
public String toASCIIString()
throws MalformedURLException
IRI
toASCIIString in class IRIMalformedURLException - An Internationalized Domain Name algorithm failed, there is no equivalent ascii string.
public IRI relativize(String abs,
int flags)
IRIabs.
If possible, a relative IRI is formed,
using any of the methods specified in flags,
which is a bitwise or of values from
IRIRelativize.
If abs contains a dot
segment (either "/./" or "/../") then
the contract cannot be satisfied and an incorrect
answer is returned. This incorrect return value has an
ViolationCodes.NON_INITIAL_DOT_SEGMENT
violation associated with it.
relativize in class IRIabs - An absolute IRI to make relative.flags - Which type of relative IRIs to permit.
public IRI relativize(String abs)
IRIabs.
If possible, a relative IRI is formed,
using default methods.
If abs contains a dot
segment (either "/./" or "/../") then
the contract cannot be satisfied and an incorrect
answer is returned. This incorrect return value has an
ViolationCodes.NON_INITIAL_DOT_SEGMENT
violation associated with it.
relativize in class IRIabs - An absolute IRI to make relative.
public IRI relativize(IRI abs)
IRIabs.
If possible, a relative IRI is formed,
using default methods.
If abs contains a dot
segment (either "/./" or "/../") then
the contract cannot be satisfied and an incorrect
answer is returned. This incorrect return value has an
ViolationCodes.NON_INITIAL_DOT_SEGMENT
violation associated with it.
relativize in class IRIabs - An absolute IRI to make relative.
public IRI relativize(IRI abs,
int flags)
IRIabs.
If possible, a relative IRI is formed,
using any of the methods specified in flags,
which is a bitwise or of values from
IRIRelativize.
If abs contains a dot
segment (either "/./" or "/../") then
the contract cannot be satisfied and an incorrect
answer is returned. This incorrect return value has an
ViolationCodes.NON_INITIAL_DOT_SEGMENT
violation associated with it.
relativize in class IRIabs - An absolute IRI to make relative.flags - Which type of relative IRIs to permit.
public Iterator<Violation> allViolations()
public String getRawUserinfo()
IRIViolationCodes.HAS_PASSWORD.
No decoding is done; this method is cheap.
getRawUserinfo in class IRIpublic int getPort()
IRI
getPort in class IRIIRI.NO_PORT or IRI.ILLFORMED_PORT.public String getRawQuery()
IRI
getRawQuery in class IRIpublic String getRawFragment()
IRI
getRawFragment in class IRIpublic String getRawHost()
IRI
getRawHost in class IRIpublic String getScheme()
IRI
getScheme in class IRIpublic String getRawPath()
IRI
getRawPath in class IRIpublic boolean isRootless()
IRI
isRootless in class IRIpublic String getRawAuthority()
IRI
getRawAuthority in class IRIpublic IRI create(IRI i)
IRIFactoryIIRI.hasViolation(boolean)
and IRI.violations(boolean).
create in interface IRIFactoryIcreate in class AbsIRIFactoryImpli - The IRI to use.
public IRI create(String s)
IRIFactoryIIRI.hasViolation(boolean)
and IRI.violations(boolean).
create in interface IRIFactoryIcreate in class AbsIRIFactoryImpls - The IRI to use.
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String getAuthority()
IRIIRI.getRawAuthority().
getAuthority in class IRIpublic String getFragment()
IRIIRI.getRawFragment().
getFragment in class IRIpublic String getHost()
IRIIRI.getRawHost().
getHost in class IRIpublic String getPath()
IRIIRI.getRawPath().
getPath in class IRIpublic String getQuery()
IRIIRI.getRawQuery().
getQuery in class IRIpublic String getUserinfo()
IRIViolationCodes.HAS_PASSWORD.
Any legal percent escape sequences are decoded.
This method may be more expensive than IRI.getRawUserinfo().
getUserinfo in class IRIpublic IRI normalize(boolean useDns)
IRI
normalize in class IRIuseDns - If true, do DNS look ups to normalize hostname.
public String toDisplayString()
IRI
toDisplayString in class IRI
public String getASCIIHost()
throws MalformedURLException
IRIIRI.getRawHost().
getASCIIHost in class IRIMalformedURLException - An Internationalized Domain Name algorithm failed, there is no equivalent ascii string.
public boolean ladderEquals(IRI iri,
int other)
IRI
ladderEquals in class IRIother - Specifies where on the ladder to make the comparison.
public int ladderEquals(IRI iri)
IRI
ladderEquals in class IRIIRI.ladderEquals(IRI, int) true, or -1 if none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||