Package com.bayesserver
Class CustomProperty
- java.lang.Object
-
- com.bayesserver.CustomProperty
-
-
Constructor Summary
Constructors Constructor Description CustomProperty(String name)
Initializes a new instance of theCustomProperty
class.CustomProperty(String name, String value)
Initializes a new instance of theCustomProperty
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomProperty
copy()
Makes a copy of this instance.String
getDescription()
An optional description for the custom property.String
getName()
Gets the name, which must be unique perCustomPropertyCollection
.CustomPropertyCollection
getParent()
Gets the parent collection, if set, otherwise null.String
getValue()
The custom property value.void
setDescription(String value)
An optional description for the custom property.void
setValue(String value)
The custom property value.
-
-
-
Constructor Detail
-
CustomProperty
public CustomProperty(String name)
Initializes a new instance of theCustomProperty
class.- Parameters:
name
- The name of the custom property, which must be unique perCustomPropertyCollection
.
-
CustomProperty
public CustomProperty(String name, String value)
Initializes a new instance of theCustomProperty
class.- Parameters:
name
- The name of the custom property, which must be unique perCustomPropertyCollection
.value
- The custom value.
-
-
Method Detail
-
copy
public CustomProperty copy()
Makes a copy of this instance.- Returns:
- The copy.
-
getName
public String getName()
Gets the name, which must be unique perCustomPropertyCollection
.
-
getValue
public String getValue()
The custom property value. E.g. an XML string.
-
setValue
public void setValue(String value)
The custom property value. E.g. an XML string.
-
getDescription
public String getDescription()
An optional description for the custom property.
-
setDescription
public void setDescription(String value)
An optional description for the custom property.
-
getParent
public CustomPropertyCollection getParent()
Gets the parent collection, if set, otherwise null.
-
-