| java.lang.Object org.obe.util.AbstractBean org.obe.xpdl.model.misc.Duration
Constructor Summary | |
public | Duration() Default public no-args constructor to keep Castor happy. | public | Duration(int value, DurationUnit unit) Construct a new Duration. | public | Duration(String duration) Construct a new Duration. |
Duration | public Duration()(Code) | | Default public no-args constructor to keep Castor happy.
|
Duration | public Duration(int value, DurationUnit unit)(Code) | | Construct a new Duration. A value of 0 signals an unlimited duration.
The duration unit may be null to specify that the default should be used.
The default is determined at runtime.
Parameters: value - The duration value Parameters: unit - The unit of measurement |
getDuration | public String getDuration()(Code) | | Returns the duration as a string.
The duration string. |
getDurationInMilliseconds | public long getDurationInMilliseconds(DurationUnit defaultUnit)(Code) | | Get the duration represented as millseconds. The specified default
duration unit is used this duration has no specified duration unit.
Parameters: defaultUnit - The default unit if no unit specified The number of milliseconds for this duration |
getUnit | public DurationUnit getUnit()(Code) | | Return this duration's unit. This method may return null if the unit is
not specified.
The duration unit or null |
getUnit | public DurationUnit getUnit(DurationUnit defaultUnit)(Code) | | Get the duration's unit. The specified default duration unit is used if
this duration has no specified duration unit.
Parameters: defaultUnit - The default unit if no unit specified The duration unit |
getValue | public int getValue()(Code) | | The duration value.
The duration value |
setDuration | public void setDuration(String duration)(Code) | | Sets the duration as a string.
Parameters: duration - The duration string. |
setValue | public void setValue(int value)(Code) | | |
toString | public String toString()(Code) | | Return a String representation of the Duration.
A string |
Methods inherited from org.obe.util.AbstractBean | final protected Object add(int propertyIndex, Object newValue) throws PropertyVetoException(Code)(Java Doc) final public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) final public void addPropertyChangeListener(String name, PropertyChangeListener pcl)(Code)(Java Doc) final public void addVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) final public void addVetoableChangeListener(String name, VetoableChangeListener vcl)(Code)(Java Doc) final public void clear(String propertyName) throws PropertyVetoException(Code)(Java Doc) final protected void firePropertyChange(PropertyChangeEvent evt)(Code)(Java Doc) final protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc) final protected void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc) final protected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) final protected void fireVetoableChange(PropertyChangeEvent evt) throws PropertyVetoException(Code)(Java Doc) final protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException(Code)(Java Doc) final protected void fireVetoableChange(String propertyName, int oldValue, int newValue) throws PropertyVetoException(Code)(Java Doc) final protected void fireVetoableChange(String propertyName, boolean oldValue, boolean newValue) throws PropertyVetoException(Code)(Java Doc) final protected Object get(int propertyIndex)(Code)(Java Doc) final protected Object get(int propertyIndex, int index)(Code)(Java Doc) final public BeanContext getBeanContext()(Code)(Java Doc) final public ListModel getListModel(String propertyName)(Code)(Java Doc) final protected boolean hasChangeListeners(String propertyName)(Code)(Java Doc) final protected boolean hasVetoListeners(String propertyName)(Code)(Java Doc) final protected Object remove(int propertyIndex, Object elem) throws PropertyVetoException(Code)(Java Doc) final public void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) final public void removePropertyChangeListener(String name, PropertyChangeListener pcl)(Code)(Java Doc) final public void removeVetoableChangeListener(VetoableChangeListener vcl)(Code)(Java Doc) final public void removeVetoableChangeListener(String name, VetoableChangeListener vcl)(Code)(Java Doc) final protected void set(int propertyIndex, Object array) throws PropertyVetoException(Code)(Java Doc) final protected void set(int propertyIndex, int index, Object newValue) throws PropertyVetoException(Code)(Java Doc) final public void setBeanContext(BeanContext bc) throws PropertyVetoException(Code)(Java Doc)
|
|
|