Package com.yahoo.config
Class ReferenceNode
- All Implemented Interfaces:
Cloneable
A ReferenceNode class represents a reference (that is a config-id)
in a
ConfigInstance
.-
Field Summary
Fields inherited from class com.yahoo.config.LeafNode
initialized, value
-
Constructor Summary
ConstructorDescriptionReferenceNode
(String value) Creates a new ReferenceNode with the given value. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doSetValue
(String value) getValue()
Subclasses must implement this, in compliance with the rules given in the return tag.void
postInitialize
(String configId) OverridesNode.postInitialize(String)
Checks for ":parent:" values, which will be replaced by the configId.toString()
Subclasses must implement this, in compliance with the rules given in the return tag.value()
Returns the value of this reference node.
-
Constructor Details
-
ReferenceNode
public ReferenceNode() -
ReferenceNode
Creates a new ReferenceNode with the given value.- Parameters:
value
- the value of this ReferenceNode
-
-
Method Details
-
value
Returns the value of this reference node. Same astoString()
since the value of a ReferenceNode is a String (but implementations in otherLeafNode
sub-classes differ). -
getValue
Description copied from class:LeafNode
Subclasses must implement this, in compliance with the rules given in the return tag. -
toString
Description copied from class:LeafNode
Subclasses must implement this, in compliance with the rules given in the return tag. -
doSetValue
- Specified by:
doSetValue
in classLeafNode<String>
-
postInitialize
OverridesNode.postInitialize(String)
Checks for ":parent:" values, which will be replaced by the configId.- Overrides:
postInitialize
in classNode
- Parameters:
configId
- the configId of the ConfigInstance that owns (or is) this node
-