|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.iri.impl.AbsIRIFactoryImpl
com.hp.hpl.jena.iri.IRI
com.hp.hpl.jena.iri.impl.AbsIRIImpl
public abstract class AbsIRIImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.hp.hpl.jena.iri.ViolationCodes |
|---|
ViolationCodes.Initialize |
| Field Summary | |
|---|---|
protected static int |
ALL_EXCEPTIONS
|
protected static int |
NO_EXCEPTIONS
|
protected static int |
NOT_RELATIVE_EXCEPTIONS
|
protected java.lang.String |
path
|
protected static int |
PATH_INDEX
|
| Fields inherited from class com.hp.hpl.jena.iri.IRI |
|---|
ILLFORMED_PORT, NO_PORT |
| Fields inherited from interface com.hp.hpl.jena.iri.IRIComponents |
|---|
AUTHORITY, FRAGMENT, HOST, PATH, PATHQUERY, PORT, QUERY, SCHEME, USER |
| Fields inherited from interface com.hp.hpl.jena.iri.IRIRelativize |
|---|
ABSOLUTE, CHILD, GRANDPARENT, NETWORK, PARENT, SAMEDOCUMENT |
| Constructor Summary | |
|---|---|
AbsIRIImpl()
|
|
| Method Summary | |
|---|---|
java.util.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(java.lang.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(java.lang.Object o)
|
java.lang.String |
getASCIIHost()
The host part of the authority, encoded as an International Domain Name. |
java.lang.String |
getAuthority()
The authority component, found between the first "//" and the next "/". |
java.lang.String |
getFragment()
The fragment, found after a "#" at the end of the main URI (note a fragment may itself contain a "#"). |
java.lang.String |
getHost()
The host part of the authority. |
java.lang.String |
getPath()
The path component of the IRI; always present, possibly the empty string. |
int |
getPort()
The port number from the authority component. |
java.lang.String |
getQuery()
The query component of the IRI. |
java.lang.String |
getRawAuthority()
The authority component, found between the first "//" and the next "/". |
java.lang.String |
getRawFragment()
The fragment, found after a "#" at the end of the main URI (note a fragment may itself contain a "#"). |
java.lang.String |
getRawHost()
The host part of the authority. |
java.lang.String |
getRawPath()
The path component of the IRI; always present, possibly the empty string. |
java.lang.String |
getRawQuery()
The query component of the IRI. |
java.lang.String |
getRawUserinfo()
The user information part of the authority component of the IRI. |
java.lang.String |
getScheme()
The scheme component of the IRI. |
java.lang.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(java.lang.String abs)
Returns an IRI that when resolved against this IRI would return abs. |
IRI |
relativize(java.lang.String abs,
int flags)
Returns an IRI that when resolved against this IRI would return abs. |
java.lang.String |
toASCIIString()
Converts the IRI into ASCII. |
java.lang.String |
toDisplayString()
The IRI string with any recommended bi-directional control characters (if necessary) to ensure correct display. |
java.net.URL |
toURL()
Converts the IRI to an ASCII string, and then to a URL. |
java.util.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 com.hp.hpl.jena.iri.IRI |
|---|
main, resolve, resolve, toString |
| Methods inherited from class com.hp.hpl.jena.iri.impl.AbsIRIFactoryImpl |
|---|
construct, construct, getFactory, throwAnyErrors |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.iri.IRIFactoryI |
|---|
construct, construct |
| Field Detail |
|---|
protected java.lang.String path
protected static final int NO_EXCEPTIONS
protected static final int ALL_EXCEPTIONS
protected static final int NOT_RELATIVE_EXCEPTIONS
protected static final int PATH_INDEX
| 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 java.util.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 java.net.URL toURL()
throws java.net.MalformedURLException
IRI
toURL in class IRIjava.net.MalformedURLException - If IDNA conversion failed, or from java.net.URL
public java.lang.String toASCIIString()
throws java.net.MalformedURLException
IRI
toASCIIString in class IRIjava.net.MalformedURLException - An Internationalized Domain Name algorithm failed, there is no equivalent ascii string.
public IRI relativize(java.lang.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(java.lang.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 java.util.Iterator<Violation> allViolations()
public java.lang.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 java.lang.String getRawQuery()
IRI
getRawQuery in class IRIpublic java.lang.String getRawFragment()
IRI
getRawFragment in class IRIpublic java.lang.String getRawHost()
IRI
getRawHost in class IRIpublic java.lang.String getScheme()
IRI
getScheme in class IRIpublic java.lang.String getRawPath()
IRI
getRawPath in class IRIpublic boolean isRootless()
IRI
isRootless in class IRIpublic java.lang.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(java.lang.String s)
IRIFactoryIIRI.hasViolation(boolean)
and IRI.violations(boolean).
create in interface IRIFactoryIcreate in class AbsIRIFactoryImpls - The IRI to use.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getAuthority()
IRIIRI.getRawAuthority().
getAuthority in class IRIpublic java.lang.String getFragment()
IRIIRI.getRawFragment().
getFragment in class IRIpublic java.lang.String getHost()
IRIIRI.getRawHost().
getHost in class IRIpublic java.lang.String getPath()
IRIIRI.getRawPath().
getPath in class IRIpublic java.lang.String getQuery()
IRIIRI.getRawQuery().
getQuery in class IRIpublic java.lang.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 java.lang.String toDisplayString()
IRI
toDisplayString in class IRI
public java.lang.String getASCIIHost()
throws java.net.MalformedURLException
IRIIRI.getRawHost().
getASCIIHost in class IRIjava.net.MalformedURLException - 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 | |||||||||