org.andromda.core.namespace
Class PropertyDefinition

java.lang.Object
  extended by org.andromda.core.namespace.PropertyDefinition

public class PropertyDefinition
extends java.lang.Object

Represents a property definition.

Author:
Chad Brandon

Constructor Summary
PropertyDefinition()
           
 
Method Summary
 java.lang.String getDefaultValue()
          Gets the default for this property definition.
 java.lang.String getName()
          Gets the name of this property definition.
 boolean isRequired()
          Indicates of this property is required, by default this flag is true.
 void setDefaultValue(java.lang.String defaultValue)
          Sets the default for the property definition.
 void setName(java.lang.String name)
          Sets the name of this property definition.
 void setRequired(boolean required)
          Sets this property is required, by default this flag is true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDefinition

public PropertyDefinition()
Method Detail

getName

public java.lang.String getName()
Gets the name of this property definition.

Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Sets the name of this property definition.

Parameters:
name - The name to set.

getDefaultValue

public java.lang.String getDefaultValue()
Gets the default for this property definition.

Returns:
Returns the defaultValue.

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)
Sets the default for the property definition.

Parameters:
defaultValue - The defaultValue to set.

setRequired

public void setRequired(boolean required)
Sets this property is required, by default this flag is true.

Parameters:
required - true/false

isRequired

public boolean isRequired()
Indicates of this property is required, by default this flag is true.

Returns:
true/false


Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.