org.robokind.api.common.config
Class VersionProperty

java.lang.Object
  extended by org.robokind.api.common.property.PropertyChangeNotifier
      extended by org.robokind.api.common.config.VersionProperty
All Implemented Interfaces:
Cloneable, PropertyChangeSource, GlobalIdentifier

public class VersionProperty
extends PropertyChangeNotifier
implements Cloneable, GlobalIdentifier

Defines a version.

Author:
Matthew Stevenson

Field Summary
static String PROP_NAME
          Property String for version name.
static String PROP_NUMBER
          Property String for version number.
 
Constructor Summary
VersionProperty(String name, String number)
          Creates a new VersionPropety with the given name and number.
 
Method Summary
 Object clone()
           
 String display()
          Returns a string representing the version which is formatted for displaying.
 boolean equals(Object obj)
           
 String getName()
          Returns the version name.
 String getNumber()
          Returns the version number.
 int hashCode()
           
 void setName(String name)
          Set the version name
 void setNumber(String num)
          Set the version number
 String toString()
           
 
Methods inherited from class org.robokind.api.common.property.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_NAME

public static final String PROP_NAME
Property String for version name.

See Also:
Constant Field Values

PROP_NUMBER

public static final String PROP_NUMBER
Property String for version number.

See Also:
Constant Field Values
Constructor Detail

VersionProperty

public VersionProperty(String name,
                       String number)
Creates a new VersionPropety with the given name and number.

Parameters:
name - name for the new VersionProperty
number - number for the new VersionProperty
Method Detail

getName

public String getName()
Returns the version name.

Returns:
version name

setName

public void setName(String name)
Set the version name

Parameters:
name - new version name

getNumber

public String getNumber()
Returns the version number.

Returns:
version number

setNumber

public void setNumber(String num)
Set the version number

Parameters:
num - new version number

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

display

public String display()
Returns a string representing the version which is formatted for displaying.

Returns:
string representing the version which is formatted for displaying

clone

public Object clone()
Overrides:
clone in class Object


Copyright © 2011-2013. All Rights Reserved.