001/* 002 * XML Type: propsType 003 * Namespace: http://www.springframework.org/schema/beans 004 * Java type: org.springframework.schema.beans.PropsType 005 * 006 * Automatically generated - do not modify. 007 */ 008package org.springframework.schema.beans.impl; 009/** 010 * An XML propsType(@http://www.springframework.org/schema/beans). 011 * 012 * This is a complex type. 013 */ 014public class PropsTypeImpl extends org.springframework.schema.beans.impl.CollectionTypeImpl implements org.springframework.schema.beans.PropsType 015{ 016 private static final long serialVersionUID = 1L; 017 018 public PropsTypeImpl(org.apache.xmlbeans.SchemaType sType) 019 { 020 super(sType); 021 } 022 023 private static final javax.xml.namespace.QName PROP$0 = 024 new javax.xml.namespace.QName("http://www.springframework.org/schema/beans", "prop"); 025 026 027 /** 028 * Gets array of all "prop" elements 029 */ 030 public org.springframework.schema.beans.PropDocument.Prop[] getPropArray() 031 { 032 synchronized (monitor()) 033 { 034 check_orphaned(); 035 java.util.List targetList = new java.util.ArrayList(); 036 get_store().find_all_element_users(PROP$0, targetList); 037 org.springframework.schema.beans.PropDocument.Prop[] result = new org.springframework.schema.beans.PropDocument.Prop[targetList.size()]; 038 targetList.toArray(result); 039 return result; 040 } 041 } 042 043 /** 044 * Gets ith "prop" element 045 */ 046 public org.springframework.schema.beans.PropDocument.Prop getPropArray(int i) 047 { 048 synchronized (monitor()) 049 { 050 check_orphaned(); 051 org.springframework.schema.beans.PropDocument.Prop target = null; 052 target = (org.springframework.schema.beans.PropDocument.Prop)get_store().find_element_user(PROP$0, i); 053 if (target == null) 054 { 055 throw new IndexOutOfBoundsException(); 056 } 057 return target; 058 } 059 } 060 061 /** 062 * Returns number of "prop" element 063 */ 064 public int sizeOfPropArray() 065 { 066 synchronized (monitor()) 067 { 068 check_orphaned(); 069 return get_store().count_elements(PROP$0); 070 } 071 } 072 073 /** 074 * Sets array of all "prop" element 075 */ 076 public void setPropArray(org.springframework.schema.beans.PropDocument.Prop[] propArray) 077 { 078 synchronized (monitor()) 079 { 080 check_orphaned(); 081 arraySetterHelper(propArray, PROP$0); 082 } 083 } 084 085 /** 086 * Sets ith "prop" element 087 */ 088 public void setPropArray(int i, org.springframework.schema.beans.PropDocument.Prop prop) 089 { 090 synchronized (monitor()) 091 { 092 check_orphaned(); 093 org.springframework.schema.beans.PropDocument.Prop target = null; 094 target = (org.springframework.schema.beans.PropDocument.Prop)get_store().find_element_user(PROP$0, i); 095 if (target == null) 096 { 097 throw new IndexOutOfBoundsException(); 098 } 099 target.set(prop); 100 } 101 } 102 103 /** 104 * Inserts and returns a new empty value (as xml) as the ith "prop" element 105 */ 106 public org.springframework.schema.beans.PropDocument.Prop insertNewProp(int i) 107 { 108 synchronized (monitor()) 109 { 110 check_orphaned(); 111 org.springframework.schema.beans.PropDocument.Prop target = null; 112 target = (org.springframework.schema.beans.PropDocument.Prop)get_store().insert_element_user(PROP$0, i); 113 return target; 114 } 115 } 116 117 /** 118 * Appends and returns a new empty value (as xml) as the last "prop" element 119 */ 120 public org.springframework.schema.beans.PropDocument.Prop addNewProp() 121 { 122 synchronized (monitor()) 123 { 124 check_orphaned(); 125 org.springframework.schema.beans.PropDocument.Prop target = null; 126 target = (org.springframework.schema.beans.PropDocument.Prop)get_store().add_element_user(PROP$0); 127 return target; 128 } 129 } 130 131 /** 132 * Removes the ith "prop" element 133 */ 134 public void removeProp(int i) 135 { 136 synchronized (monitor()) 137 { 138 check_orphaned(); 139 get_store().remove_element(PROP$0, i); 140 } 141 } 142}