|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jena.riot.lang.BlankNodeAllocatorLabel
public class BlankNodeAllocatorLabel
Allocate blank nodes according to the label given.
The reverse operation is NodeToLabel.createBNodeByLabelAsGiven()
but it is unsafe in general.
Use BlankNodeAllocatorLabelEncoded and NodeToLabel.createBNodeByLabelEncoded()
for round-tripping output-input.
| Constructor Summary | |
|---|---|
BlankNodeAllocatorLabel()
|
|
| Method Summary | |
|---|---|
Node |
alloc(String label)
Allocate based on a non-null label. |
Node |
create()
Create a fresh blank node, different from anything generated so far. |
void |
reset()
Reset allocation state - calls to BlankNodeAllocator.alloc(java.lang.String) or BlankNodeAllocator.create() |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlankNodeAllocatorLabel()
| Method Detail |
|---|
public void reset()
BlankNodeAllocator
reset in interface BlankNodeAllocatorpublic Node alloc(String label)
BlankNodeAllocator
alloc in interface BlankNodeAllocatorpublic Node create()
BlankNodeAllocator
create in interface BlankNodeAllocator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||