public class ARPResource extends TaintImpl implements AResourceInternal
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
Constructor and Description |
---|
ARPResource(XMLHandler parent) |
ARPResource(XMLHandler parent,
String nid) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAnonymousID()
A string distinguishing this anonymous resource, from other anonymous resources.
|
boolean |
getHasBeenUsed()
Only for blank nodes - non blank need not support.
|
String |
getURI()
The URI reference for this resource, if any.
|
Object |
getUserData()
The user data allows the RDF application to store one Object with each blank node during parsing.
|
int |
hashCode() |
boolean |
hasNodeID()
True, if this is an anonymous resource with an explicit rdf:nodeID.
|
boolean |
isAnonymous()
True if this resource does not have an associated URI.
|
void |
setHasBeenUsed()
Only for blank nodes - non blank need not support.
|
void |
setUserData(Object d)
The user data allows the RDF application to store one Object with each blank node during parsing.
|
String |
toString() |
public static final boolean DEBUG
public ARPResource(XMLHandler parent)
public ARPResource(XMLHandler parent, String nid)
public boolean isAnonymous()
AResource
isAnonymous
in interface AResource
public String getAnonymousID()
AResource
AResource.isAnonymous()
returns false.getAnonymousID
in interface AResource
public String getURI()
AResource
AResource.isAnonymous()
returns true.public Object getUserData()
AResource
getUserData
in interface AResource
AResource.setUserData(java.lang.Object)
; or null if none.public void setUserData(Object d)
AResource
See note about large files in class documentation for ARP
.
setUserData
in interface AResource
d
- A user data object which may be retrieved later with AResource.getUserData()
.public boolean hasNodeID()
AResource
public void setHasBeenUsed()
AResourceInternal
setHasBeenUsed
in interface AResourceInternal
public boolean getHasBeenUsed()
AResourceInternal
getHasBeenUsed
in interface AResourceInternal
Licenced under the Apache License, Version 2.0