Package com.aspose.threed
Class PropertyCollection
- java.lang.Object
-
- com.aspose.threed.PropertyCollection
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Property
findProperty(java.lang.String property)
Finds the property.Property
get(int idx)
Gets the property by index.java.lang.Object
get(java.lang.String property)
Gets the value of the property by property name.java.util.Iterator<Property>
iterator()
Returns an enumerator that iterates through the collection.boolean
removeProperty(Property property)
Removes a dynamic property.boolean
removeProperty(java.lang.String property)
Removes a dynamic property.void
set(java.lang.String property, java.lang.Object value)
Sets the value of the property by property name.int
size()
Gets the count of declared properties.
-
-
-
Method Detail
-
size
public int size()
Gets the count of declared properties.
-
get
public Property get(int idx)
Gets the property by index.- Parameters:
idx
- The 0-based index of the property
-
findProperty
public Property findProperty(java.lang.String property)
Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)- Parameters:
property
- Property name.- Returns:
- The property.
-
get
public java.lang.Object get(java.lang.String property)
Gets the value of the property by property name.- Parameters:
property
- The name of the property- Returns:
- The property's value
-
set
public void set(java.lang.String property, java.lang.Object value)
Sets the value of the property by property name.- Parameters:
property
- The name of the propertyvalue
- New value
-
removeProperty
public boolean removeProperty(Property property)
Removes a dynamic property.- Parameters:
property
- Which property to remove- Returns:
- true if the property is successfully removed
-
removeProperty
public boolean removeProperty(java.lang.String property)
Removes a dynamic property.- Parameters:
property
- Which property to remove- Returns:
- true if the property is successfully removed
-
-