public class LinkSet extends Object implements ILinkSet
| Constructor and Description |
|---|
LinkSet(IGPO owner,
org.openrdf.model.URI linkProperty,
boolean linksIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(IGPO arg) |
boolean |
addAll(Collection<? extends IGPO> arg) |
void |
clear() |
boolean |
contains(Object arg) |
boolean |
containsAll(Collection<?> arg0) |
String |
encode(org.openrdf.model.Resource v)
Encode a URL, Literal, or blank node for inclusion in a SPARQL query to
be sent to the remote service.
|
org.openrdf.model.URI |
getLinkProperty()
The name of the property that the members of the link set use to point to
the generic object that is collecting this link set.
|
IGPO |
getOwner()
The generic object that is being pointed at by the members of the link
set.
|
boolean |
isEmpty() |
boolean |
isLinkSetIn()
true iff this link set models the links into the owner
(edges in) and false iff this link set models the links out
of the owner (edges out). |
Iterator<IGPO> |
iterator() |
<C> Iterator<C> |
iterator(Class<C> theClassOrInterface)
Returns an
Iterator that will visit objects that are instances of
the specificed class or interface (the backing IGPO objects
are wrapped by a suitable IGenericSkin). |
boolean |
remove(Object obj) |
boolean |
removeAll(Collection<?> arg0) |
boolean |
retainAll(Collection<?> arg0) |
int |
size()
The #of members in the link set.
|
long |
sizeLong() |
<C> Iterator<C> |
statements() |
Object[] |
toArray()
Eagerly streams materialized objects into an array
|
<T> T[] |
toArray(T[] arg0) |
public org.openrdf.model.URI getLinkProperty()
ILinkSetgetLinkProperty in interface ILinkSetpublic IGPO getOwner()
ILinkSetpublic boolean isLinkSetIn()
ILinkSettrue iff this link set models the links into the owner
(edges in) and false iff this link set models the links out
of the owner (edges out).isLinkSetIn in interface ILinkSetpublic <C> Iterator<C> iterator(Class<C> theClassOrInterface)
ILinkSetIterator that will visit objects that are instances of
the specificed class or interface (the backing IGPO objects
are wrapped by a suitable IGenericSkin).public int size()
ILinkSetpublic boolean add(IGPO arg)
public boolean addAll(Collection<? extends IGPO> arg)
public void clear()
public boolean contains(Object arg)
public boolean containsAll(Collection<?> arg0)
containsAll in interface Collection<IGPO>containsAll in interface Set<IGPO>public boolean isEmpty()
public String encode(org.openrdf.model.Resource v)
v - The resource.ObjectMgrModel.encode(Resource)public boolean remove(Object obj)
public boolean removeAll(Collection<?> arg0)
public boolean retainAll(Collection<?> arg0)
public Object[] toArray()
public <T> T[] toArray(T[] arg0)
public <C> Iterator<C> statements()
statements in interface ILinkSetCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.