public class IlvMResource extends Object implements Serializable
Warning: for resources of SDM
model objects, be sure to use the IlvRDFSDMModel.Subject
subclass for a
consistent approach inside SDM.
Constructor and Description |
---|
IlvMResource()
Anonymous resource
|
IlvMResource(String uri)
Creates the resource with a
String . |
IlvMResource(String uri,
Namespace ns)
Creates the resource with a
String and a namespace. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object target)
|
static String |
generateURI()
Generates a unique URI.
|
Namespace |
getNamespace()
Returns the namespace of the resource.
|
String |
getQName()
Returns the qualified name of the resource
("[namespace-name]:[URI]", or "[URI]" if the namespace is
null ). |
String |
getURI()
Returns the URI of the resource.
|
int |
hashCode()
Returns the hash code.
|
void |
print(int offset,
PrintStream out)
Method print.
|
void |
setNamespace(Namespace ns)
Sets the namespace of the resource.
|
void |
setURI(String uri)
Sets the URI of the resource.
|
public IlvMResource()
public IlvMResource(String uri)
String
.uri
- The URI of the resource.public void setURI(String uri)
uri
- The new URI.public String getURI()
public String getQName()
null
).public void setNamespace(Namespace ns)
ns
- The new namespace.public Namespace getNamespace()
public void print(int offset, PrintStream out)
offset
- The offset.out
- The out put print stream.public static String generateURI()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.