devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Devicemap Wiki] Update of "DataSpec2" by rezan
Date Wed, 14 Jan 2015 13:24:38 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Devicemap Wiki" for change notification.

The "DataSpec2" page has been changed by rezan:
https://wiki.apache.org/devicemap/DataSpec2?action=diff&rev1=31&rev2=32

  
  = Transformers =
  
- Transformers take in an input string, apply an action, and then return a string.
+ Transformers accept a string string, apply an action, and then return a string.
  If multiple transformers are defined in a set, the outputs and inputs are
  chained together.
  Transformers are used in the input parsing phase and the attribute retrieval phase.
@@ -293, +293 @@

   :: Description: converts the input to all uppercase
   :: Return: the input in uppercase
  
-  Replace::
+  ReplaceFirst::
   :: Description: replace the first occurrence of a string with another string
   :: Parameter - find: the substring to replace
   :: Parameter - replaceWith: the string to replace 'find' with
@@ -304, +304 @@

   :: Parameter - find: the substring to replace
   :: Parameter - replaceWith: the string to replace 'find' with
   :: Return: the string with the replacements made
+ 
+  Substring::
+  :: Description: return a substring of the input
+  :: Parameter - start: the starting index, 0 based
+  :: Parameter - maxLength: optional. If defined, the maximum amount of characters to return.
+  :: Return: the specified substring
+  :: Error: if start is out of bounds
  
   SplitAndGet::
   :: Description: split the input and return a part of the split

Mime
View raw message