All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class com.trumphurst.utils.TLongProperty
java.lang.Object
   |
   +----com.trumphurst.utils.TLongProperty
  -  public class TLongProperty
  -  extends Object
  -  implements TProperty
A TProperty which holds a long value
   
  -   l l
-  The value
   
  -   TLongProperty(long) TLongProperty(long)
-   Construct with a value
 
   
  -   arguments() arguments()
-   Return a String representation of the arguments necessary to construct the property.
  
-   construct(String) construct(String)
-   "Construct" the property from a String argument list.
  
-   fromString(String) fromString(String)
-   Change the value of the property from a String representation of the new value.
  
-   get() get()
-  Return the value
  
-   get(TProperties, String) get(TProperties, String)
-   Return the long value of the specified property in the properties list.
  
-   set(long) set(long)
-  
 Set the value 
 
  
-   toString() toString()
-   Return a String representation of the value.
   
 l
l
 protected long l
  -  The value
 
   
 TLongProperty
TLongProperty
 public TLongProperty(long l)
  -  Construct with a value
   
- 
    -  Parameters:
    
-  l - the value
  
 
   
 get
get
 public long get()
  -  Return the value
 
 get
get
 public static long get(TProperties properties,
                        String key)
  -  Return the long value of the specified property in the properties list.
 Verifies that the key exists, and refers to a TLongProperty (or a
 subclass).
   
- 
    -  Parameters:
    
-  properties - the properties list
    
-  Returns:
    
-  the long value of the property, or 0
  
 
 set
set
 public void set(long l) throws ValidationException
  -  Set the value
   
- 
    -  Parameters:
    
-  l - the value to set
    
-  Throws: ValidationException
    
-  never thrown by this class, but a
 subclass that only permits a limited range of values might throw
 the exception if the new value was out of range.
  
 
 construct
construct
 public void construct(String arguments) throws ValidationException
  -  "Construct" the property from a String argument list.
 The same as fromString, as there are no additional arguments other
 than the value.
   
- 
    -  Parameters:
    
-  arguments - a string which can be converted into a long
    
-  Throws: ValidationException
    
-  if the argument cannot be converted to a long
  
 
 fromString
fromString
 public void fromString(String s) throws ValidationException
  -  Change the value of the property from a String representation of the new value.
   
- 
    -  Parameters:
    
-  arguments - a string which can be converted into a long
    
-  Throws: ValidationException
    
-  if the argument cannot be converted to a long
  
 
 toString
toString
 public String toString()
  -  Return a String representation of the value.
   
- 
    -  Returns:
    
-  the long converted to a String
    
-  Overrides:
    
-  toString in class Object
  
 
 arguments
arguments
 public String arguments()
  -  Return a String representation of the arguments necessary to construct the property.
   
- 
    -  Returns:
    
-  the long converted to a String
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index