org.andromda.core.configuration
Class Property

java.lang.Object
  extended byorg.andromda.core.configuration.Property
All Implemented Interfaces:
Serializable

public class Property
extends Object
implements Serializable

This class represents properties which are used to configure Namespace objects which are made available to configure Plugin instances.

Author:
Chad Brandon
See Also:
Namespace, Namespaces, Serialized Form

Constructor Summary
Property()
           
 
Method Summary
 String getName()
          Returns the name.
 String getValue()
          Returns the value.
 boolean isIgnore()
          If a property is set to ignore then Namespaces will ignore it if it doesn't exist on lookup (otherwise errors messages are output).
 void setIgnore(boolean ignore)
           
 void setName(String name)
          Sets the name.
 void setValue(String value)
          Sets the value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property()
Method Detail

getName

public String getName()
Returns the name. This is used by Namespaces to find this property.

Returns:
String

setName

public void setName(String name)
Sets the name.

Parameters:
name - The name to set

getValue

public String getValue()
Returns the value. This is the value that is stored in this property.

Returns:
the value as a String

setValue

public void setValue(String value)
Sets the value.

Parameters:
value - The value to set

isIgnore

public boolean isIgnore()
If a property is set to ignore then Namespaces will ignore it if it doesn't exist on lookup (otherwise errors messages are output). This is useful if you have a plugin on a classpath (its unavoidable), but you don't want to see the errors messages (since it really isn't an error). Another use of it would be to ignore outlet entires for cartridges if you wanted to generate some from the cartridge outlets, but not others.

Returns:
Returns the ignore value true/false.

setIgnore

public void setIgnore(boolean ignore)
Parameters:
ignore - The ignore to set.
See Also:
isIgnore()

toString

public String toString()
See Also:
Object.toString()


Copyright © 2003-2006 The AndroMDA Team. All Rights Reserved.