Class PropertyCollection

  • java.lang.Object
    • com.aspose.threed.PropertyCollection
  • All Implemented Interfaces:
    java.lang.Iterable<Property>

    public class PropertyCollection
    extends java.lang.Object
    implements java.lang.Iterable<Property>
    The collection of properties
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • 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 property
        value - 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
      • iterator

        public java.util.Iterator<Property> iterator()
        Returns an enumerator that iterates through the collection.
        Specified by:
        iterator in interface java.lang.Iterable<Property>