Package org.dom4j

Examples of org.dom4j.Element.elementIterator()


      Element root = xmlRelationshipsDoc.getRootElement();

      // Check OPC compliance M4.1 rule
      boolean fCorePropertiesRelationship = false;

      for (Iterator i = root
          .elementIterator(PackageRelationship.RELATIONSHIP_TAG_NAME); i
          .hasNext();) {
        Element element = (Element) i.next();
        // Relationship ID
        String id = element.attribute(
View Full Code Here


        // Getting the 'indexedAttributes' element
        Element indexedAttributesElement = element.element( ServerXmlIOV155.ELEMENT_INDEXED_ATTRIBUTES );
        if ( indexedAttributesElement != null )
        {
            // Looping on 'jdbmIndex' elements
            for ( Iterator<?> i = indexedAttributesElement.elementIterator( ServerXmlIOV155.ELEMENT_JDBM_INDEX ); i
                .hasNext(); )
            {
                // Getting the 'jdbmIndex' element
                Element jdbmIndexElement = ( Element ) i.next();
View Full Code Here

        // Getting the 'partitions'element
        Element partitionsElement = element.element( ServerXmlIOV155.ELEMENT_PARTITIONS );
        if ( partitionsElement != null )
        {
            // Looping on all 'jdbmPartition' tags
            for ( Iterator<?> i = partitionsElement.elementIterator( ServerXmlIOV155.ELEMENT_JDBM_PARTITION ); i
                .hasNext(); )
            {
                // Getting the 'jbdmPartition' element
                Element jdbmPartitionElement = ( Element ) i.next();
View Full Code Here

        // Getting the 'interceptors
        Element interceptorsElement = element.element( ServerXmlIOV155.ELEMENT_INTERCEPTORS );
        if ( interceptorsElement != null )
        {
            // Looping on all interceptor elements
            for ( Iterator<?> i = interceptorsElement.elementIterator(); i.hasNext(); )
            {
                // Getting the element
                Element interceptorElement = ( Element ) i.next();

                // Checking which interceptor it is
View Full Code Here

            // Getting the 'transports' element
            Element transportsElement = ldapServerElement.element( ServerXmlIOV155.ELEMENT_TRANSPORTS );
            if ( transportsElement != null )
            {
                // Looping on all 'tcpTransport' elements
                for ( Iterator<?> iterator = transportsElement.elementIterator( ServerXmlIOV155.ELEMENT_TCP_TRANSPORT ); iterator
                    .hasNext(); )
                {
                    // Getting the 'tcpTransport' element
                    Element tcpTransportElement = ( Element ) iterator.next();
View Full Code Here

            Element supportedMechanismsElement = ldapServerElement
                .element( ServerXmlIOV155.ELEMENT_SASL_MECHANISM_HANDLERS );
            if ( supportedMechanismsElement != null )
            {
                // Looping on all elements
                for ( Iterator<?> iterator = supportedMechanismsElement.elementIterator(); iterator.hasNext(); )
                {
                    // Getting the  element
                    Element supportedMechanismValueElement = ( Element ) iterator.next();
                    String supportedMechanismValue = supportedMechanismValueElement.getName();
                    org.dom4j.Attribute mechNameAttribute = supportedMechanismValueElement
View Full Code Here

            // SaslRealms
            Element SaslRealmsElement = ldapServerElement.element( ServerXmlIOV155.ELEMENT_SASL_REALMS );
            if ( SaslRealmsElement != null )
            {
                // Looping on all 'value' elements
                for ( Iterator<?> iterator = SaslRealmsElement.elementIterator( ServerXmlIOV155.ELEMENT_VALUE ); iterator
                    .hasNext(); )
                {
                    // Getting the 'value' element
                    Element saslRealmValueElement = ( Element ) iterator.next();
View Full Code Here

        // Getting the 'interceptors
        Element interceptorsElement = element.element( ServerXmlIOV155.ELEMENT_EXTENDED_OPERATION_HANDLERS );
        if ( interceptorsElement != null )
        {
            // Looping on all interceptor elements
            for ( Iterator<?> i = interceptorsElement.elementIterator(); i.hasNext(); )
            {
                // Getting the element
                Element extendedOperationElement = ( Element ) i.next();

                // Checking which extended operation it is
View Full Code Here

      }
      if ( mappings.getCatalogName() != null ) {
        params.setProperty( PersistentIdentifierGenerator.CATALOG, mappings.getCatalogName() );
      }

      Iterator iter = subnode.elementIterator( "param" );
      while ( iter.hasNext() ) {
        Element childNode = (Element) iter.next();
        params.setProperty( childNode.attributeValue( "name" ), childNode.getTextTrim() );
      }
View Full Code Here

    }

    // first, iterate over all elements capable of defining an extends attribute
    // collecting all found extends references if they cannot be resolved
    // against the already processed mappings.
    subclasses[0] = hmNode.elementIterator( "subclass" );
    subclasses[1] = hmNode.elementIterator( "joined-subclass" );
    subclasses[2] = hmNode.elementIterator( "union-subclass" );

    Iterator iterator = new JoinedIterator( subclasses );
    while ( iterator.hasNext() ) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.