Package com.yahoo.config
Class ReferenceNode
- java.lang.Object
-
- com.yahoo.config.Node
-
- com.yahoo.config.LeafNode<java.lang.String>
-
- com.yahoo.config.ReferenceNode
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ReferenceNode extends LeafNode<java.lang.String>
A ReferenceNode class represents a reference (that is a config-id) in aConfigInstance
.
-
-
Field Summary
-
Fields inherited from class com.yahoo.config.LeafNode
initialized, value
-
-
Constructor Summary
Constructors Constructor Description ReferenceNode()
ReferenceNode(java.lang.String value)
Creates a new ReferenceNode with the given value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doSetValue(java.lang.String value)
java.lang.String
getValue()
Subclasses must implement this, in compliance with the rules given in the return tag.void
postInitialize(java.lang.String configId)
OverridesNode.postInitialize(String)
Checks for ":parent:" values, which will be replaced by the configId.java.lang.String
toString()
Subclasses must implement this, in compliance with the rules given in the return tag.java.lang.String
value()
Returns the value of this reference node.
-
-
-
Method Detail
-
value
public java.lang.String 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
public java.lang.String getValue()
Description copied from class:LeafNode
Subclasses must implement this, in compliance with the rules given in the return tag.
-
toString
public java.lang.String toString()
Description copied from class:LeafNode
Subclasses must implement this, in compliance with the rules given in the return tag.
-
doSetValue
protected boolean doSetValue(java.lang.String value)
- Specified by:
doSetValue
in classLeafNode<java.lang.String>
-
postInitialize
public void postInitialize(java.lang.String configId)
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
-
-