ValueNode_Join::ValueNode_Join(const ValueBase &value):
LinkableValueNode(value.get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
switch(value.get_type())
{
case ValueBase::TYPE_STRING:
default:
throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
}
-
- DCAST_HACK_ENABLE();
}
LinkableValueNode*
return
type==ValueBase::TYPE_STRING;
}
+
+LinkableValueNode::Vocab
+ValueNode_Join::get_children_vocab_vfunc()const
+{
+ if(children_vocab.size())
+ return children_vocab;
+
+ LinkableValueNode::Vocab ret;
+
+ ret.push_back(ParamDesc(ValueBase(),"strings")
+ .set_local_name(_("Strings"))
+ .set_description(_("The List of strings to join"))
+ );
+
+ ret.push_back(ParamDesc(ValueBase(),"before")
+ .set_local_name(_("Before"))
+ .set_description(_("The string to place before the joined strings"))
+ );
+
+ ret.push_back(ParamDesc(ValueBase(),"separator")
+ .set_local_name(_("Separator"))
+ .set_description(_("The string to place between each string joined"))
+ );
+
+ ret.push_back(ParamDesc(ValueBase(),"after")
+ .set_local_name(_("After"))
+ .set_description(_("The string to place after the joined strings"))
+ );
+
+ return ret;
+}