Package org.apache.jena.riot.lang
Class BlankNodeAllocatorLabelEncoded
- java.lang.Object
-
- org.apache.jena.riot.lang.BlankNodeAllocatorLabelEncoded
-
- All Implemented Interfaces:
BlankNodeAllocator
public class BlankNodeAllocatorLabelEncoded extends java.lang.Object implements BlankNodeAllocator
Allocate blank nodes according to the label given. This allocator reconstructs labels made byNodeToLabel.createBNodeByLabelEncoded()
-
-
Constructor Summary
Constructors Constructor Description BlankNodeAllocatorLabelEncoded()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Nodealloc(java.lang.String label)Allocate based on a non-null label.Nodecreate()Create a fresh blank node, different from anything generated so far.voidreset()Reset allocation state - calls toBlankNodeAllocator.alloc(java.lang.String)orBlankNodeAllocator.create()
-
-
-
Method Detail
-
reset
public void reset()
Description copied from interface:BlankNodeAllocatorReset allocation state - calls toBlankNodeAllocator.alloc(java.lang.String)orBlankNodeAllocator.create()- Specified by:
resetin interfaceBlankNodeAllocator
-
alloc
public Node alloc(java.lang.String label)
Description copied from interface:BlankNodeAllocatorAllocate based on a non-null label. Calling this twice, with the same label will generate equivalent nodes but they may not be identical (i.e they are .equals but may not be ==)- Specified by:
allocin interfaceBlankNodeAllocator
-
create
public Node create()
Description copied from interface:BlankNodeAllocatorCreate a fresh blank node, different from anything generated so far. Will not clash with a node allocated byBlankNodeAllocator.alloc(java.lang.String)- Specified by:
createin interfaceBlankNodeAllocator
-
-