|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.project.BaseObject
Field Summary | |
protected java.lang.String |
id
Id to use for this object. |
Constructor Summary | |
BaseObject()
|
Method Summary | |
void |
addProperty(java.lang.String combinedProperty)
Add a meta property to this object. |
boolean |
equals(java.lang.Object o)
Whether the passed object is the same as this one. |
java.lang.String |
getId()
Gets the id attribute |
java.lang.String |
getName()
Gets the name attribute |
java.util.List |
getProperties()
Get meta properties. |
java.lang.String |
getProperty(java.lang.String propertyName)
Get a meta property. |
int |
hashCode()
Provides the hashCode of this object, which is determined by simply delegating the responsibility to the name property |
protected boolean |
isValid(java.lang.String value)
Simple check for a value in the POM. |
java.util.Map |
resolvedProperties()
Get the resolved properties after the name:value processing has been done. |
void |
setId(java.lang.String id)
Sets the id attribute of the BaseObject object |
void |
setName(java.lang.String name)
Sets the name attribute |
void |
setProperties(java.util.List combinedProperties)
Set meta properties. |
java.lang.String |
toString()
Return a string suitable for display/debugging |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String id
Constructor Detail |
public BaseObject()
Method Detail |
public void setName(java.lang.String name)
name
- the new name valuepublic java.lang.String getName()
public void setId(java.lang.String id)
id
- the new id valuepublic java.lang.String getId()
public void addProperty(java.lang.String combinedProperty)
combinedProperty
- The property that is fed in by
the MetaPropertiesRule is in the form name:value
so that we can fake out betwixt. Not beautiful
but it works and when we find a better solution
nothing will change for users.public java.lang.String getProperty(java.lang.String propertyName)
propertyName
- the name of the property to retrieve
public void setProperties(java.util.List combinedProperties)
List
of
name:value entries.
combinedProperties
- a list of name:value stringspublic java.util.List getProperties()
List
of name:value entriespublic java.util.Map resolvedProperties()
meta properties
turning
the name:value strings into a key and value for the mappublic java.lang.String toString()
public boolean equals(java.lang.Object o)
o
- any object
public int hashCode()
protected boolean isValid(java.lang.String value)
value
- POM value to test.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |