Package com.aspose.tasks
Class CustomProjectPropertyCollection
- java.lang.Object
-
- com.aspose.tasks.PropertyCollection<T>
-
- com.aspose.tasks.PropertyKeyedCollection<CustomProjectProperty>
-
- com.aspose.tasks.CustomProjectPropertyCollection
-
- All Implemented Interfaces:
Iterable<CustomProjectProperty>
,Collection<CustomProjectProperty>
public final class CustomProjectPropertyCollection extends PropertyKeyedCollection<CustomProjectProperty>
Represents a collection of custom project properties.
-
-
Constructor Summary
Constructors Constructor Description CustomProjectPropertyCollection()
Initializes a new instance of theCustomProjectPropertyCollection
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomProjectProperty
add(String name, boolean value)
Creates a new custom property.CustomProjectProperty
add(String name, double value)
Creates a new custom property.CustomProjectProperty
add(String name, String value)
Creates a new custom property.CustomProjectProperty
add(String name, Date value)
Creates a new custom property.void
clear()
Clears the PropertyCollection.boolean
isReadOnly()
Gets a value indicating whether this collection is read-only; otherwise, false.boolean
remove(String name)
Removes a property with the specified name from the collection.-
Methods inherited from class com.aspose.tasks.PropertyKeyedCollection
add, addAll, contains, contains, containsAll, get_Item, getNames, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class com.aspose.tasks.PropertyCollection
iterator
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, iterator, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
CustomProjectPropertyCollection
public CustomProjectPropertyCollection()
Initializes a new instance of the
CustomProjectPropertyCollection
class.
-
-
Method Detail
-
add
public final CustomProjectProperty add(String name, String value)
Creates a new custom property.
- Parameters:
name
- The name of the property.value
- The newly created property object value.- Returns:
- The newly created property object.
-
add
public final CustomProjectProperty add(String name, boolean value)
Creates a new custom property.
- Parameters:
name
- The name of the property.value
- The newly created property object value.- Returns:
- The newly created property object.
-
add
public final CustomProjectProperty add(String name, double value)
Creates a new custom property.
- Parameters:
name
- The name of the property.value
- The newly created property object value.- Returns:
- The newly created property object.
-
add
public final CustomProjectProperty add(String name, Date value)
Creates a new custom property.
- Parameters:
name
- The name of the property.value
- The newly created property object value.- Returns:
- The newly created property object.
-
clear
public final void clear()
Clears the PropertyCollection.
- Specified by:
clear
in interfaceCollection<CustomProjectProperty>
- Overrides:
clear
in classPropertyKeyedCollection<CustomProjectProperty>
-
isReadOnly
public boolean isReadOnly()
Gets a value indicating whether this collection is read-only; otherwise, false.
- Specified by:
isReadOnly
in classPropertyKeyedCollection<CustomProjectProperty>
- Returns:
- a value indicating whether this collection is read-only; otherwise, false.
-
remove
public final boolean remove(String name)
Removes a property with the specified name from the collection.
- Parameters:
name
- The case-insensitive name of the property.- Returns:
- True if the element is successfully found and removed; otherwise, false.
-
-