Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans         http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<!--

    Copyright 2005-2013 The Kuali Foundation

    Licensed under the Educational Community License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.opensource.org/licenses/ecl2.php

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
  <bean id="DocName" parent="DocName-parentBean"/>

  <bean id="DocName-parentBean" abstract="true" parent="BusinessObjectEntry" p:businessObjectClass="org.kuali.rice.kim.bo.ui.PersonDocumentName" p:titleAttribute="nameCode" p:objectLabel="Person Name" p:inquiryDefinition-ref="DocName-inquiryDefinition" p:lookupDefinition-ref="DocName-lookupDefinition">
    <property name="attributes">
      <list>
        <ref bean="DocName-firstName"/>
        <ref bean="DocName-middleName"/>
        <ref bean="DocName-lastName"/>
        <ref bean="DocName-nameSuffix"/>
        <ref bean="DocName-namePrefix"/>
        <ref bean="DocName-nameCode"/>
        <ref bean="DocName-active"/>
        <ref bean="DocName-dflt"/>
      </list>
    </property>
  </bean>

  <bean id="DocName-firstName" parent="DocName-firstName-parentBean"/>
  <bean id="DocName-firstName-parentBean" parent="AttributeDefinition" abstract="true" p:name="firstName" p:forceUppercase="true" p:label="First Name" p:shortLabel="First Name" p:maxLength="40" p:required="true">
    <property name="validationPattern">

      <bean parent="AnyCharacterValidationPattern" p:allowWhitespace="true" p:maxLength="40" />

    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="10"/>
    </property>
  </bean>

  <bean id="DocName-middleName" parent="DocName-middleName-parentBean"/>
  <bean id="DocName-middleName-parentBean" parent="AttributeDefinition" abstract="true" p:name="middleName" p:forceUppercase="true" p:label="Middle Name" p:shortLabel="Middle Name" p:maxLength="40" p:required="false">
    <property name="validationPattern">

      <bean parent="AnyCharacterValidationPattern" p:allowWhitespace="true" p:maxLength="40" />

    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="10"/>
    </property>
  </bean>

  <bean id="DocName-lastName" parent="DocName-lastName-parentBean"/>
  <bean id="DocName-lastName-parentBean" parent="AttributeDefinition" abstract="true" p:name="lastName" p:forceUppercase="true" p:label="Last Name" p:shortLabel="Last Name" p:maxLength="80" p:required="true">
    <property name="validationPattern">

      <bean parent="AnyCharacterValidationPattern" p:allowWhitespace="true" p:maxLength="80" />

    </property>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="10"/>
    </property>
  </bean>

  <bean id="DocName-nameSuffix" parent="DocName-nameSuffix-parentBean"/>
  <bean id="DocName-nameSuffix-parentBean" parent="AttributeDefinition" abstract="true" p:name="nameSuffix" p:forceUppercase="true" p:label="Name Suffix" p:shortLabel="Name Suffix" p:maxLength="20" p:required="false">
    <property name="control">
      <bean parent="SelectControlDefinition" p:businessObjectClass="org.kuali.rice.coreservice.impl.parameter.ParameterBo" p:valuesFinderClass="org.kuali.rice.kim.bo.options.NameSuffixValuesFinder" p:includeKeyInLabel="false" p:keyAttribute="namespaceCode" p:labelAttribute="name"/>
    </property>
  </bean>
 
   <bean id="DocName-nameCode" parent="DocName-nameCode-parentBean"/>
  <bean id="DocName-nameCode-parentBean" parent="AttributeDefinition" abstract="true" p:name="nameCode" p:forceUppercase="true" p:label="Name Code" p:shortLabel="Name Code" p:maxLength="40" p:required="false">
    <property name="control">
      <bean parent="SelectControlDefinition" p:businessObjectClass="org.kuali.rice.kim.impl.identity.name.EntityNameTypeBo" p:valuesFinderClass="org.kuali.rice.krad.keyvalues.PersistableBusinessObjectValuesFinder" p:includeKeyInLabel="false" p:keyAttribute="code" p:labelAttribute="name"/>
    </property>
  </bean>
    
  <bean id="DocName-namePrefix" parent="DocName-namePrefix-parentBean"/>
  <bean id="DocName-namePrefix-parentBean" parent="AttributeDefinition" abstract="true" p:name="namePrefix" p:forceUppercase="true" p:label="Name Prefix" p:shortLabel="Name Prefix" p:maxLength="20" p:required="false">
    <property name="control">
      <bean parent="SelectControlDefinition" p:businessObjectClass="org.kuali.rice.coreservice.impl.parameter.ParameterBo" p:valuesFinderClass="org.kuali.rice.kim.bo.options.NamePrefixValuesFinder" p:includeKeyInLabel="false" p:keyAttribute="namespaceCode" p:labelAttribute="name"/>
    </property>
  </bean>
  
     <bean id="DocName-active" parent="DocName-active-parentBean"/>
  <bean id="DocName-active-parentBean" abstract="true" parent="AttributeReferenceDummy-genericBoolean">
    <property name="name" value="active"/>
    <property name="label" value="Active"/>
    <property name="shortLabel" value="Active"/>
    <property name="required" value="false"/>
    <property name="summary" value="Active"/>
    <property name="description" value="Active"/>
  </bean>
 
  <bean id="DocName-dflt" parent="DocName-dflt-parentBean"/>
  <bean id="DocName-dflt-parentBean" abstract="true" parent="AttributeReferenceDummy-genericBoolean">
    <property name="name" value="dflt"/>
    <property name="label" value="Default"/>
    <property name="shortLabel" value="Default"/>
    <property name="required" value="false"/>
    <property name="summary" value="Default"/>
    <property name="description" value="Default"/>
  </bean>

  
  
  <bean id="DocName-inquiryDefinition" parent="DocName-inquiryDefinition-parentBean"/>

  <bean id="DocName-inquiryDefinition-parentBean" abstract="true" parent="InquiryDefinition" p:title="Person Name Inquiry">
    <property name="inquirySections">
      <list>
        <bean parent="InquirySectionDefinition" p:title="Person Attributes" p:numberOfColumns="1">
          <property name="inquiryFields">
            <list>
              <bean parent="FieldDefinition" p:attributeName="nameCode"/>
              <bean parent="FieldDefinition" p:attributeName="namePrefix"/>
              <bean parent="FieldDefinition" p:attributeName="firstName"/>
              <bean parent="FieldDefinition" p:attributeName="middleName"/>
              <bean parent="FieldDefinition" p:attributeName="lastName"/>
              <bean parent="FieldDefinition" p:attributeName="nameSuffix"/>
            </list>
          </property>
        </bean>
      </list>
    </property>
  </bean>

  <bean id="DocName-lookupDefinition" parent="DocName-lookupDefinition-parentBean"/>

  <bean id="DocName-lookupDefinition-parentBean" abstract="true" parent="LookupDefinition" p:title="Name Lookup">
    <property name="defaultSort">
      <bean parent="SortDefinition">
        <property name="attributeNames">
          <list>
            <value>nameCode</value>
          </list>
        </property>
        <property name="sortAscending" value="true"/>
      </bean>
    </property>
    <property name="lookupFields">
      <list>
        <bean parent="FieldDefinition" p:attributeName="nameCode"/>
        <bean parent="FieldDefinition" p:attributeName="namePrefix"/>
        <bean parent="FieldDefinition" p:attributeName="firstName"/>
        <bean parent="FieldDefinition" p:attributeName="lastName"/>
        <bean parent="FieldDefinition" p:attributeName="nameSuffix"/>
      </list>
    </property>
    <property name="resultFields">
      <list>
        <bean parent="FieldDefinition" p:attributeName="nameCode"/>
        <bean parent="FieldDefinition" p:attributeName="namePrefix"/>
        <bean parent="FieldDefinition" p:attributeName="firstName"/>
        <bean parent="FieldDefinition" p:attributeName="lastName"/>
        <bean parent="FieldDefinition" p:attributeName="nameSuffix"/>
      </list>
    </property>
  </bean>

</beans>
New to GrepCode? Check out our FAQ X