| java.lang.Object xdoclet.modules.ojb.model.DefBase
All known Subclasses: xdoclet.modules.ojb.model.ProcedureArgumentDef, xdoclet.modules.ojb.model.TableDef, xdoclet.modules.ojb.model.FeatureDescriptorDef, xdoclet.modules.ojb.model.ProcedureDef, xdoclet.modules.ojb.model.NestedDef, xdoclet.modules.ojb.model.ModelDef, xdoclet.modules.ojb.model.ClassDescriptorDef, xdoclet.modules.ojb.model.ForeignkeyDef, xdoclet.modules.ojb.model.ColumnDef, xdoclet.modules.ojb.model.IndexDescriptorDef, xdoclet.modules.ojb.model.ObjectCacheDef, xdoclet.modules.ojb.model.TorqueModelDef, xdoclet.modules.ojb.model.IndexDef,
Constructor Summary | |
public | DefBase(String name) Initializes the base def object. | public | DefBase(DefBase src, String prefix) Initializes the base def object to be a copy of the given base def object (except for the owner). |
DefBase | public DefBase(String name)(Code) | | Initializes the base def object.
Parameters: name - The name |
DefBase | public DefBase(DefBase src, String prefix)(Code) | | Initializes the base def object to be a copy of the given base def object (except for the owner).
Parameters: src - The original base def object Parameters: prefix - A prefix for the name |
applyModifications | public void applyModifications(Properties mods)(Code) | | Applies the modifications contained in the given properties object.
Properties are removed by having a null entry in the mods object.
Properties that are new in mods object, are added to this def object.
Parameters: mods - The modifications |
getBooleanProperty | public boolean getBooleanProperty(String name, boolean defaultValue)(Code) | | Returns the boolean value of the specified property.
Parameters: name - The name of the property Parameters: defaultValue - The value to use if the property is not set or not a boolean The value |
getName | public String getName()(Code) | | Returns the name of the def object.
The name |
getOwner | public DefBase getOwner()(Code) | | Returns the owner of this def.
The owner |
getProperty | public String getProperty(String name)(Code) | | Returns the value of the specified property.
Parameters: name - The name of the property The value |
getPropertyNames | public Iterator getPropertyNames()(Code) | | Returns the property names.
The names |
hasProperty | public boolean hasProperty(String name)(Code) | | Determines whether a properties exists.
Parameters: name - The property name true if the property exists |
setOwner | public void setOwner(DefBase owner)(Code) | | Sets the owner of this def.
Parameters: owner - The owner |
setProperty | public void setProperty(String name, String value)(Code) | | Sets a property.
Parameters: name - The property name Parameters: value - The property value |
|
|