sav.z
Class Name

java.lang.Object
  extended bysav.z.Name

public class Name
extends java.lang.Object

This Name class has static methods to manipulate with strings represanting Zigzag simple objects. The string of simple objects does not have ":" symbol. The string may be number, quoted or unquoted string.

Since:
7.0

Constructor Summary
Name()
           
 
Method Summary
static boolean isNumber(java.lang.String value)
          Checks whether value is number.
static java.lang.String toQuote(java.lang.String term)
          Returnes quoted term, like 'John' instead of John.
static java.lang.String toTerm(java.lang.String value)
          Returns non-quoted value, like John instead of 'John'.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Name

public Name()
Method Detail

toQuote

public static java.lang.String toQuote(java.lang.String term)
Returnes quoted term, like 'John' instead of John. The term loses last space symbols. If input parameter is quoted already, it remains the same.

See Also:
Variable.term(), Base.attrTerm(String, String), ClassNavigation.term(String)

toTerm

public static java.lang.String toTerm(java.lang.String value)
Returns non-quoted value, like John instead of 'John'.

See Also:
Variable.value(), Base.attrValue(String, String), ClassNavigation.value(String)

isNumber

public static boolean isNumber(java.lang.String value)
Checks whether value is number.

See Also:
Variable.hasNumber()