public String processInterfaceType(DescriptionType descriptionType, InterfaceType interfaceType, boolean addAddress)
    {
        String interfaceName = interfaceType.getName();
        String allAddress = DBConstants.BLANK;
        
        for (Object nextElement : interfaceType.getOperationOrFaultOrFeature())
        {
            Object interfaceOperationType = null;
            if (nextElement instanceof JAXBElement)
                interfaceOperationType = ((JAXBElement)nextElement).getValue();
            if (interfaceOperationType instanceof InterfaceOperationType)
            {
                String address = this.processInterfaceOperationType(descriptionType, interfaceName, (InterfaceOperationType)interfaceOperationType, addAddress);
                if (allAddress != null)
                {
                    if (allAddress == DBConstants.BLANK)
                        allAddress = address;
                    else if (!allAddress.equalsIgnoreCase(address))
                        allAddress = null;  // null = not all address are the same
                }
            }
        }
        
        return allAddress;
    }
public String processInterfaceType ( DescriptionType descriptionType , InterfaceType interfaceType , boolean addAddress ) { String interfaceName = interfaceType . getName ( ) ; String allAddress = DBConstants . BLANK ; for ( Object nextElement : interfaceType . getOperationOrFaultOrFeature ( ) ) { Object interfaceOperationType = null ; if ( nextElement instanceof JAXBElement ) interfaceOperationType = ( ( JAXBElement ) nextElement ) . getValue ( ) ; if ( interfaceOperationType instanceof InterfaceOperationType ) { String address = this . processInterfaceOperationType ( descriptionType , interfaceName , ( InterfaceOperationType ) interfaceOperationType , addAddress ) ; if ( allAddress != null ) { if ( allAddress == DBConstants . BLANK ) allAddress = address ; else if ( ! allAddress . equalsIgnoreCase ( address ) ) allAddress = null ; } } } return allAddress ; }
ProcessInterfaceType Method.