PropertyCollection

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Iterable

public class PropertyCollection implements Iterable<Property>

Коллекция свойств

Методы

МетодОписание
equals(Object arg0)
findProperty(String property)Находит свойство.
get(int idx)Получает свойство по индексу.
get(String property)Получает значение свойства по имени свойства.
getClass()
hashCode()
iterator()Возвращает перечислитель, который перебирает элементы коллекции.
notify()
notifyAll()
removeProperty(Property property)Удаляет динамическое свойство.
removeProperty(String property)Удаляет динамическое свойство.
set(String property, Object value)Устанавливает значение свойства по имени свойства.
size()Получает количество объявленных свойств.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ПараметрТипОписание
arg0java.lang.Object

Returns: boolean

findProperty(String property)

public Property findProperty(String property)

Находит свойство. Оно может быть динамическим свойством (созданным с помощью CreateDynamicProperty/SetProperty) или нативным свойством (определяемым по его имени)

Parameters:

ПараметрТипОписание
свойствоjava.lang.StringИмя свойства.

Returns: Property - The property.

get(int idx)

public Property get(int idx)

Получает свойство по индексу.

Parameters:

ПараметрТипОписание
idxintИндекс свойства, начинающийся с 0

Returns: Property - the property by index.

get(String property)

public Object get(String property)

Получает значение свойства по имени свойства.

Parameters:

ПараметрТипОписание
свойствоjava.lang.StringИмя свойства

Returns: java.lang.Object — значение свойства

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

iterator()

public Iterator<Property> iterator()

Возвращает перечислитель, который перебирает элементы коллекции.

Returns: java.util.Iterator<com.aspose.threed.Property>

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeProperty(Property property)

public boolean removeProperty(Property property)

Удаляет динамическое свойство.

Parameters:

ПараметрТипОписание
propertyPropertyКакое свойство удалить

Returns: boolean - true, если свойство успешно удалено

removeProperty(String property)

public boolean removeProperty(String property)

Удаляет динамическое свойство.

Parameters:

ПараметрТипОписание
свойствоjava.lang.StringКакое свойство удалить

Returns: boolean - true, если свойство успешно удалено

set(String property, Object value)

public void set(String property, Object value)

Устанавливает значение свойства по имени свойства.

Parameters:

ПараметрТипОписание
свойствоjava.lang.StringИмя свойства
значениеjava.lang.ObjectНовое значение

size()

public int size()

Получает количество объявленных свойств.

Returns: int - количество объявленных свойств.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ПараметрТипОписание
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ПараметрТипОписание
arg0long
arg1int