public class NodeIdentifierReferenceFactory extends ReferenceValueFactory
Node.getIdentifier()
strings, including those that are local (e.g., not
foreign
) and thus don't have the source part and workspace part.JcrSession
AbstractValueFactory.ConvertingIterator<ValueType>
simple, weak
decoder, propertyType, valueFactories
DEFAULT_DECODER, DEFAULT_ENCODER
Modifier | Constructor and Description |
---|---|
protected |
NodeIdentifierReferenceFactory(PropertyType type,
TextDecoder decoder,
ValueFactories valueFactories,
boolean weak,
boolean simple,
NodeKey rootKey) |
Modifier and Type | Method and Description |
---|---|
Reference |
create(String value)
Create a value from a string, using no decoding.
|
static NodeIdentifierReferenceFactory |
newInstance(NodeKey rootKey,
TextDecoder decoder,
ValueFactories factories,
boolean weak,
boolean simple) |
ReferenceFactory |
with(ValueFactories valueFactories)
Return a potentially new copy of this factory that uses the supplied ValueFactories object.
|
create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, createEmptyArray, newInstance
create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, getDecoder, getDecoder, getPropertyType, getStringValueFactory
protected NodeIdentifierReferenceFactory(PropertyType type, TextDecoder decoder, ValueFactories valueFactories, boolean weak, boolean simple, NodeKey rootKey)
public static NodeIdentifierReferenceFactory newInstance(NodeKey rootKey, TextDecoder decoder, ValueFactories factories, boolean weak, boolean simple)
public Reference create(String value)
ValueFactory
create
in interface ValueFactory<Reference>
create
in class ReferenceValueFactory
value
- the string from which the value is to be createdValueFactory.create(String, TextDecoder)
public ReferenceFactory with(ValueFactories valueFactories)
ValueFactory
with
in interface ReferenceFactory
with
in interface ValueFactory<Reference>
with
in class ReferenceValueFactory
valueFactories
- the value factories object; may not be nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.