public class ProjectMetadata extends Object
Constructor and Description |
---|
ProjectMetadata() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String key,
String value)
Adds a custom property.
|
String |
getId()
Returns the project id.
|
String |
getNamespace()
Returns the namespace where the project resides.
|
Properties |
getProperties()
Returns the object with all custom properties.
|
boolean |
hasProperties()
Returns true, if there are custom properties set.
|
void |
setId(String id)
Sets the project id.
|
void |
setNamespace(String namespace)
Sets the namespace.
|
void |
setProperties(Properties properties)
Replaces all custom properties with the given properties object.
|
String |
toString() |
public ProjectMetadata()
public String getNamespace()
public void setNamespace(String namespace)
public void addProperty(String key, String value)
key
- value
- public void setProperties(Properties properties)
properties
- public Properties getProperties()
public boolean hasProperties()
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.