Package com.bayesserver
Class CustomProperty
- java.lang.Object
-
- com.bayesserver.CustomProperty
-
-
Constructor Summary
Constructors Constructor Description CustomProperty(String name)Initializes a new instance of theCustomPropertyclass.CustomProperty(String name, String value)Initializes a new instance of theCustomPropertyclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomPropertycopy()Makes a copy of this instance.StringgetDescription()An optional description for the custom property.StringgetName()Gets the name, which must be unique perCustomPropertyCollection.CustomPropertyCollectiongetParent()Gets the parent collection, if set, otherwise null.StringgetValue()The custom property value.voidsetDescription(String value)An optional description for the custom property.voidsetValue(String value)The custom property value.
-
-
-
Constructor Detail
-
CustomProperty
public CustomProperty(String name)
Initializes a new instance of theCustomPropertyclass.- 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 theCustomPropertyclass.- 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.
-
-